1 // This test case tests the incremental compilation hash (ICH) implementation
4 // The general pattern followed here is: Change one thing between rev1 and rev2
5 // and make sure that the hash has changed, then change nothing between rev2 and
6 // rev3 and make sure that the hash has not changed.
8 // build-pass (FIXME(62277): could be check-pass?)
9 // revisions: cfail1 cfail2 cfail3
10 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans
13 #![feature(rustc_attrs)]
19 pub fn change_loop_body() {
28 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
29 #[rustc_clean(cfg="cfail3")]
30 pub fn change_loop_body() {
42 pub fn change_loop_condition() {
51 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
52 #[rustc_clean(cfg="cfail3")]
53 pub fn change_loop_condition() {
73 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
74 #[rustc_clean(cfg="cfail3")]
87 pub fn add_loop_label() {
96 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
97 #[rustc_clean(cfg="cfail3")]
98 pub fn add_loop_label() {
108 // Add loop label to break
110 pub fn add_loop_label_to_break() {
119 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
120 #[rustc_clean(cfg="cfail3")]
121 pub fn add_loop_label_to_break() {
131 // Change break label
133 pub fn change_break_label() {
144 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
145 #[rustc_clean(cfg="cfail3")]
146 pub fn change_break_label() {
158 // Add loop label to continue
160 pub fn add_loop_label_to_continue() {
169 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
170 #[rustc_clean(cfg="cfail3")]
171 pub fn add_loop_label_to_continue() {
181 // Change continue label
183 pub fn change_continue_label() {
194 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
195 #[rustc_clean(cfg="cfail3")]
196 pub fn change_continue_label() {
208 // Change continue to break
210 pub fn change_continue_to_break() {
219 #[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
220 #[rustc_clean(cfg="cfail3")]
221 pub fn change_continue_to_break() {