Skip to content

Commit b30b442

Browse files
committed
Update if-expressions incremental hash tests
1 parent e9e876d commit b30b442

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

src/test/incremental/hashes/if_expressions.rs

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ pub fn change_condition(x: bool) -> u32 {
3636
}
3737

3838
#[cfg(not(cfail1))]
39-
#[rustc_clean(label="Hir", cfg="cfail2")]
40-
#[rustc_clean(label="Hir", cfg="cfail3")]
41-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
42-
#[rustc_clean(label="HirBody", cfg="cfail3")]
39+
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
40+
#[rustc_clean(cfg="cfail3")]
4341
#[rustc_metadata_clean(cfg="cfail2")]
4442
#[rustc_metadata_clean(cfg="cfail3")]
4543
pub fn change_condition(x: bool) -> u32 {
@@ -61,10 +59,8 @@ pub fn change_then_branch(x: bool) -> u32 {
6159
}
6260

6361
#[cfg(not(cfail1))]
64-
#[rustc_clean(label="Hir", cfg="cfail2")]
65-
#[rustc_clean(label="Hir", cfg="cfail3")]
66-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
67-
#[rustc_clean(label="HirBody", cfg="cfail3")]
62+
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
63+
#[rustc_clean(cfg="cfail3")]
6864
#[rustc_metadata_clean(cfg="cfail2")]
6965
#[rustc_metadata_clean(cfg="cfail3")]
7066
pub fn change_then_branch(x: bool) -> u32 {
@@ -88,10 +84,8 @@ pub fn change_else_branch(x: bool) -> u32 {
8884
}
8985

9086
#[cfg(not(cfail1))]
91-
#[rustc_clean(label="Hir", cfg="cfail2")]
92-
#[rustc_clean(label="Hir", cfg="cfail3")]
93-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
94-
#[rustc_clean(label="HirBody", cfg="cfail3")]
87+
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
88+
#[rustc_clean(cfg="cfail3")]
9589
#[rustc_metadata_clean(cfg="cfail2")]
9690
#[rustc_metadata_clean(cfg="cfail3")]
9791
pub fn change_else_branch(x: bool) -> u32 {
@@ -117,10 +111,8 @@ pub fn add_else_branch(x: bool) -> u32 {
117111
}
118112

119113
#[cfg(not(cfail1))]
120-
#[rustc_clean(label="Hir", cfg="cfail2")]
121-
#[rustc_clean(label="Hir", cfg="cfail3")]
122-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
123-
#[rustc_clean(label="HirBody", cfg="cfail3")]
114+
#[rustc_clean(cfg="cfail2", except="HirBody,TypeckTables")]
115+
#[rustc_clean(cfg="cfail3")]
124116
#[rustc_metadata_clean(cfg="cfail2")]
125117
#[rustc_metadata_clean(cfg="cfail3")]
126118
pub fn add_else_branch(x: bool) -> u32 {
@@ -147,10 +139,8 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 {
147139
}
148140

149141
#[cfg(not(cfail1))]
150-
#[rustc_clean(label="Hir", cfg="cfail2")]
151-
#[rustc_clean(label="Hir", cfg="cfail3")]
152-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
153-
#[rustc_clean(label="HirBody", cfg="cfail3")]
142+
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
143+
#[rustc_clean(cfg="cfail3")]
154144
#[rustc_metadata_clean(cfg="cfail2")]
155145
#[rustc_metadata_clean(cfg="cfail3")]
156146
pub fn change_condition_if_let(x: Option<u32>) -> u32 {
@@ -174,10 +164,8 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
174164
}
175165

176166
#[cfg(not(cfail1))]
177-
#[rustc_clean(label="Hir", cfg="cfail2")]
178-
#[rustc_clean(label="Hir", cfg="cfail3")]
179-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
180-
#[rustc_clean(label="HirBody", cfg="cfail3")]
167+
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
168+
#[rustc_clean(cfg="cfail3")]
181169
#[rustc_metadata_clean(cfg="cfail2")]
182170
#[rustc_metadata_clean(cfg="cfail3")]
183171
pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
@@ -201,10 +189,8 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
201189
}
202190

203191
#[cfg(not(cfail1))]
204-
#[rustc_clean(label="Hir", cfg="cfail2")]
205-
#[rustc_clean(label="Hir", cfg="cfail3")]
206-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
207-
#[rustc_clean(label="HirBody", cfg="cfail3")]
192+
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
193+
#[rustc_clean(cfg="cfail3")]
208194
#[rustc_metadata_clean(cfg="cfail2")]
209195
#[rustc_metadata_clean(cfg="cfail3")]
210196
pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
@@ -230,10 +216,8 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
230216
}
231217

232218
#[cfg(not(cfail1))]
233-
#[rustc_clean(label="Hir", cfg="cfail2")]
234-
#[rustc_clean(label="Hir", cfg="cfail3")]
235-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
236-
#[rustc_clean(label="HirBody", cfg="cfail3")]
219+
#[rustc_clean(cfg="cfail2", except="HirBody,TypeckTables")]
220+
#[rustc_clean(cfg="cfail3")]
237221
#[rustc_metadata_clean(cfg="cfail2")]
238222
#[rustc_metadata_clean(cfg="cfail3")]
239223
pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {

0 commit comments

Comments
 (0)