Update for loop fingerprint hash tests

This commit is contained in:
Jeff Crocker 2017-12-05 14:13:58 -08:00
parent 77aee18c13
commit bf3246fa10
No known key found for this signature in database
GPG Key ID: 05997DB09D30BCD6

View File

@ -27,7 +27,7 @@
// Change loop body ------------------------------------------------------------
#[cfg(cfail1)]
fn change_loop_body() {
pub fn change_loop_body() {
let mut _x = 0;
for _ in 0..1 {
_x = 1;
@ -36,11 +36,9 @@ fn change_loop_body() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_loop_body() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
#[rustc_clean(cfg="cfail3")]
pub fn change_loop_body() {
let mut _x = 0;
for _ in 0..1 {
_x = 2;
@ -52,7 +50,7 @@ fn change_loop_body() {
// Change iteration variable name ----------------------------------------------
#[cfg(cfail1)]
fn change_iteration_variable_name() {
pub fn change_iteration_variable_name() {
let mut _x = 0;
for _i in 0..1 {
_x = 1;
@ -61,11 +59,9 @@ fn change_iteration_variable_name() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_iteration_variable_name() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
#[rustc_clean(cfg="cfail3")]
pub fn change_iteration_variable_name() {
let mut _x = 0;
for _a in 0..1 {
_x = 1;
@ -77,7 +73,7 @@ fn change_iteration_variable_name() {
// Change iteration variable pattern -------------------------------------------
#[cfg(cfail1)]
fn change_iteration_variable_pattern() {
pub fn change_iteration_variable_pattern() {
let mut _x = 0;
for _i in &[0, 1, 2] {
_x = 1;
@ -86,11 +82,9 @@ fn change_iteration_variable_pattern() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_iteration_variable_pattern() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
#[rustc_clean(cfg="cfail3")]
pub fn change_iteration_variable_pattern() {
let mut _x = 0;
for &_i in &[0, 1, 2] {
_x = 1;
@ -102,7 +96,7 @@ fn change_iteration_variable_pattern() {
// Change iterable -------------------------------------------------------------
#[cfg(cfail1)]
fn change_iterable() {
pub fn change_iterable() {
let mut _x = 0;
for _ in &[0, 1, 2] {
_x = 1;
@ -111,11 +105,9 @@ fn change_iterable() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_iterable() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
#[rustc_clean(cfg="cfail3")]
pub fn change_iterable() {
let mut _x = 0;
for _ in &[0, 1, 3] {
_x = 1;
@ -127,7 +119,7 @@ fn change_iterable() {
// Add break -------------------------------------------------------------------
#[cfg(cfail1)]
fn add_break() {
pub fn add_break() {
let mut _x = 0;
for _ in 0..1 {
_x = 1;
@ -135,11 +127,9 @@ fn add_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn add_break() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
#[rustc_clean(cfg="cfail3")]
pub fn add_break() {
let mut _x = 0;
for _ in 0..1 {
_x = 1;
@ -151,7 +141,7 @@ fn add_break() {
// Add loop label --------------------------------------------------------------
#[cfg(cfail1)]
fn add_loop_label() {
pub fn add_loop_label() {
let mut _x = 0;
for _ in 0..1 {
_x = 1;
@ -160,11 +150,9 @@ fn add_loop_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn add_loop_label() {
#[rustc_clean(cfg="cfail2", except="HirBody")]
#[rustc_clean(cfg="cfail3")]
pub fn add_loop_label() {
let mut _x = 0;
'label: for _ in 0..1 {
_x = 1;
@ -176,7 +164,7 @@ fn add_loop_label() {
// Add loop label to break -----------------------------------------------------
#[cfg(cfail1)]
fn add_loop_label_to_break() {
pub fn add_loop_label_to_break() {
let mut _x = 0;
'label: for _ in 0..1 {
_x = 1;
@ -185,11 +173,9 @@ fn add_loop_label_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn add_loop_label_to_break() {
#[rustc_clean(cfg="cfail2", except="HirBody")]
#[rustc_clean(cfg="cfail3")]
pub fn add_loop_label_to_break() {
let mut _x = 0;
'label: for _ in 0..1 {
_x = 1;
@ -201,7 +187,7 @@ fn add_loop_label_to_break() {
// Change break label ----------------------------------------------------------
#[cfg(cfail1)]
fn change_break_label() {
pub fn change_break_label() {
let mut _x = 0;
'outer: for _ in 0..1 {
'inner: for _ in 0..1 {
@ -212,11 +198,9 @@ fn change_break_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_break_label() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
#[rustc_clean(cfg="cfail3")]
pub fn change_break_label() {
let mut _x = 0;
'outer: for _ in 0..1 {
'inner: for _ in 0..1 {
@ -230,7 +214,7 @@ fn change_break_label() {
// Add loop label to continue --------------------------------------------------
#[cfg(cfail1)]
fn add_loop_label_to_continue() {
pub fn add_loop_label_to_continue() {
let mut _x = 0;
'label: for _ in 0..1 {
_x = 1;
@ -239,11 +223,9 @@ fn add_loop_label_to_continue() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn add_loop_label_to_continue() {
#[rustc_clean(cfg="cfail2", except="HirBody")]
#[rustc_clean(cfg="cfail3")]
pub fn add_loop_label_to_continue() {
let mut _x = 0;
'label: for _ in 0..1 {
_x = 1;
@ -255,7 +237,7 @@ fn add_loop_label_to_continue() {
// Change continue label ----------------------------------------------------------
#[cfg(cfail1)]
fn change_continue_label() {
pub fn change_continue_label() {
let mut _x = 0;
'outer: for _ in 0..1 {
'inner: for _ in 0..1 {
@ -266,11 +248,9 @@ fn change_continue_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_continue_label() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
#[rustc_clean(cfg="cfail3")]
pub fn change_continue_label() {
let mut _x = 0;
'outer: for _ in 0..1 {
'inner: for _ in 0..1 {
@ -284,7 +264,7 @@ fn change_continue_label() {
// Change continue to break ----------------------------------------------------
#[cfg(cfail1)]
fn change_continue_to_break() {
pub fn change_continue_to_break() {
let mut _x = 0;
for _ in 0..1 {
_x = 1;
@ -293,11 +273,9 @@ fn change_continue_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(label="Hir", cfg="cfail2")]
#[rustc_clean(label="Hir", cfg="cfail3")]
#[rustc_dirty(label="HirBody", cfg="cfail2")]
#[rustc_clean(label="HirBody", cfg="cfail3")]
fn change_continue_to_break() {
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
#[rustc_clean(cfg="cfail3")]
pub fn change_continue_to_break() {
let mut _x = 0;
for _ in 0..1 {
_x = 1;