Skip to content

Commit cd3ca0b

Browse files
committed
finish struct_constructors
1 parent 173e8c1 commit cd3ca0b

File tree

1 file changed

+24
-36
lines changed

1 file changed

+24
-36
lines changed

src/test/incremental/hashes/struct_constructors.rs

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ fn change_field_value_regular_struct() -> RegularStruct {
4242
}
4343

4444
#[cfg(not(cfail1))]
45-
#[rustc_clean(label="Hir", cfg="cfail2")]
46-
#[rustc_clean(label="Hir", cfg="cfail3")]
47-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
48-
#[rustc_clean(label="HirBody", cfg="cfail3")]
45+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
46+
#[rustc_clean(cfg="cfail3")]
4947
#[rustc_metadata_clean(cfg="cfail2")]
5048
#[rustc_metadata_clean(cfg="cfail3")]
5149
fn change_field_value_regular_struct() -> RegularStruct {
@@ -69,10 +67,8 @@ fn change_field_order_regular_struct() -> RegularStruct {
6967
}
7068

7169
#[cfg(not(cfail1))]
72-
#[rustc_clean(label="Hir", cfg="cfail2")]
73-
#[rustc_clean(label="Hir", cfg="cfail3")]
74-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
75-
#[rustc_clean(label="HirBody", cfg="cfail3")]
70+
#[rustc_clean(cfg="cfail2", except="HirBody,TypeckTables")]
71+
#[rustc_clean(cfg="cfail3")]
7672
#[rustc_metadata_clean(cfg="cfail2")]
7773
#[rustc_metadata_clean(cfg="cfail3")]
7874
fn change_field_order_regular_struct() -> RegularStruct {
@@ -101,10 +97,8 @@ fn add_field_regular_struct() -> RegularStruct {
10197
}
10298

10399
#[cfg(not(cfail1))]
104-
#[rustc_clean(label="Hir", cfg="cfail2")]
105-
#[rustc_clean(label="Hir", cfg="cfail3")]
106-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
107-
#[rustc_clean(label="HirBody", cfg="cfail3")]
100+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
101+
#[rustc_clean(cfg="cfail3")]
108102
#[rustc_metadata_clean(cfg="cfail2")]
109103
#[rustc_metadata_clean(cfg="cfail3")]
110104
fn add_field_regular_struct() -> RegularStruct {
@@ -140,10 +134,8 @@ fn change_field_label_regular_struct() -> RegularStruct {
140134
}
141135

142136
#[cfg(not(cfail1))]
143-
#[rustc_clean(label="Hir", cfg="cfail2")]
144-
#[rustc_clean(label="Hir", cfg="cfail3")]
145-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
146-
#[rustc_clean(label="HirBody", cfg="cfail3")]
137+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
138+
#[rustc_clean(cfg="cfail3")]
147139
#[rustc_metadata_clean(cfg="cfail2")]
148140
#[rustc_metadata_clean(cfg="cfail3")]
149141
fn change_field_label_regular_struct() -> RegularStruct {
@@ -179,10 +171,8 @@ fn change_constructor_path_regular_struct() {
179171
}
180172

181173
#[cfg(not(cfail1))]
182-
#[rustc_clean(label="Hir", cfg="cfail2")]
183-
#[rustc_clean(label="Hir", cfg="cfail3")]
184-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
185-
#[rustc_clean(label="HirBody", cfg="cfail3")]
174+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
175+
#[rustc_clean(cfg="cfail3")]
186176
#[rustc_metadata_clean(cfg="cfail2")]
187177
#[rustc_metadata_clean(cfg="cfail3")]
188178
fn change_constructor_path_regular_struct() {
@@ -202,10 +192,11 @@ mod change_constructor_path_indirectly_regular_struct {
202192
#[cfg(not(cfail1))]
203193
use super::RegularStruct2 as Struct;
204194

205-
#[rustc_dirty(label="Hir", cfg="cfail2")]
206-
#[rustc_clean(label="Hir", cfg="cfail3")]
207-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
208-
#[rustc_clean(label="HirBody", cfg="cfail3")]
195+
#[rustc_clean(
196+
cfg="cfail2",
197+
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,TypeckTables"
198+
)]
199+
#[rustc_clean(cfg="cfail3")]
209200
#[rustc_metadata_dirty(cfg="cfail2")]
210201
#[rustc_metadata_clean(cfg="cfail3")]
211202
fn function() -> Struct {
@@ -228,10 +219,8 @@ fn change_field_value_tuple_struct() -> TupleStruct {
228219
}
229220

230221
#[cfg(not(cfail1))]
231-
#[rustc_clean(label="Hir", cfg="cfail2")]
232-
#[rustc_clean(label="Hir", cfg="cfail3")]
233-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
234-
#[rustc_clean(label="HirBody", cfg="cfail3")]
222+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
223+
#[rustc_clean(cfg="cfail3")]
235224
#[rustc_metadata_clean(cfg="cfail2")]
236225
#[rustc_metadata_clean(cfg="cfail3")]
237226
fn change_field_value_tuple_struct() -> TupleStruct {
@@ -249,10 +238,8 @@ fn change_constructor_path_tuple_struct() {
249238
}
250239

251240
#[cfg(not(cfail1))]
252-
#[rustc_clean(label="Hir", cfg="cfail2")]
253-
#[rustc_clean(label="Hir", cfg="cfail3")]
254-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
255-
#[rustc_clean(label="HirBody", cfg="cfail3")]
241+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
242+
#[rustc_clean(cfg="cfail3")]
256243
#[rustc_metadata_clean(cfg="cfail2")]
257244
#[rustc_metadata_clean(cfg="cfail3")]
258245
fn change_constructor_path_tuple_struct() {
@@ -268,10 +255,11 @@ mod change_constructor_path_indirectly_tuple_struct {
268255
#[cfg(not(cfail1))]
269256
use super::TupleStruct2 as Struct;
270257

271-
#[rustc_dirty(label="Hir", cfg="cfail2")]
272-
#[rustc_clean(label="Hir", cfg="cfail3")]
273-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
274-
#[rustc_clean(label="HirBody", cfg="cfail3")]
258+
#[rustc_clean(
259+
cfg="cfail2",
260+
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,TypeckTables"
261+
)]
262+
#[rustc_clean(cfg="cfail3")]
275263
#[rustc_metadata_dirty(cfg="cfail2")]
276264
#[rustc_metadata_clean(cfg="cfail3")]
277265
fn function() -> Struct {

0 commit comments

Comments
 (0)