]>
git.proxmox.com Git - rustc.git/blob - src/test/incremental/hashes/loop_expressions.rs
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="HirBody, mir_built, optimized_mir")]
29 #[rustc_clean(cfg="cfail3")]
30 pub fn change_loop_body() {
50 #[rustc_clean(cfg="cfail2", except="HirBody, mir_built, optimized_mir, typeck_tables_of")]
51 #[rustc_clean(cfg="cfail3")]
64 pub fn add_loop_label() {
73 #[rustc_clean(cfg="cfail2", except="HirBody")]
74 #[rustc_clean(cfg="cfail3")]
75 pub fn add_loop_label() {
85 // Add loop label to break
87 pub fn add_loop_label_to_break() {
96 #[rustc_clean(cfg="cfail2", except="HirBody")]
97 #[rustc_clean(cfg="cfail3")]
98 pub fn add_loop_label_to_break() {
108 // Change break label
110 pub fn change_break_label() {
121 #[rustc_clean(cfg="cfail2", except="HirBody, mir_built, optimized_mir, typeck_tables_of")]
122 #[rustc_clean(cfg="cfail3")]
123 pub fn change_break_label() {
135 // Add loop label to continue
137 pub fn add_loop_label_to_continue() {
146 #[rustc_clean(cfg="cfail2", except="HirBody")]
147 #[rustc_clean(cfg="cfail3")]
148 pub fn add_loop_label_to_continue() {
158 // Change continue label
160 pub fn change_continue_label() {
171 #[rustc_clean(cfg="cfail2", except="HirBody, mir_built, typeck_tables_of")]
172 #[rustc_clean(cfg="cfail3")]
173 pub fn change_continue_label() {
185 // Change continue to break
187 pub fn change_continue_to_break() {
196 #[rustc_clean(cfg="cfail2", except="HirBody, mir_built, optimized_mir, typeck_tables_of")]
197 #[rustc_clean(cfg="cfail3")]
198 pub fn change_continue_to_break() {