Skip to content

Commit 20a8a23

Browse files
committed
Bless incremental tests.
1 parent b99c3ae commit 20a8a23

17 files changed

+533
-570
lines changed

tests/incremental/dirty_clean.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ mod y {
2626
use x;
2727

2828
#[rustc_clean(
29-
except="hir_owner,hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig",
29+
except="hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig",
3030
cfg="cfail2",
3131
)]
3232
pub fn y() {
33-
//[cfail2]~^ ERROR `hir_owner(y)` should be dirty but is not
34-
//[cfail2]~| ERROR `hir_owner_nodes(y)` should be dirty but is not
33+
//[cfail2]~^ ERROR `hir_owner_nodes(y)` should be dirty but is not
3534
//[cfail2]~| ERROR `generics_of(y)` should be dirty but is not
3635
//[cfail2]~| ERROR `predicates_of(y)` should be dirty but is not
3736
//[cfail2]~| ERROR `type_of(y)` should be dirty but is not

tests/incremental/hash-module-order.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
#![feature(rustc_attrs)]
1313

1414
#[cfg(rpass1)]
15-
#[rustc_clean(cfg="rpass1",except="hir_owner")]
15+
#[rustc_clean(cfg="rpass1",except="hir_owner_nodes")]
1616
mod foo {
1717
struct First;
1818
struct Second;
1919
}
2020

2121
#[cfg(rpass2)]
22-
#[rustc_clean(cfg="rpass2",except="hir_owner")]
22+
#[rustc_clean(cfg="rpass2",except="hir_owner_nodes")]
2323
mod foo {
2424
struct Second;
2525
struct First;

tests/incremental/hashes/consts.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
const CONST_VISIBILITY: u8 = 0;
2020

2121
#[cfg(not(cfail1))]
22-
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
22+
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
2323
#[rustc_clean(cfg="cfail3")]
2424
pub const CONST_VISIBILITY: u8 = 0;
2525

@@ -29,7 +29,7 @@ pub const CONST_VISIBILITY: u8 = 0;
2929
const CONST_CHANGE_TYPE_1: i32 = 0;
3030

3131
#[cfg(not(cfail1))]
32-
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
32+
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
3333
#[rustc_clean(cfg="cfail3")]
3434
const CONST_CHANGE_TYPE_1: u32 = 0;
3535

@@ -39,7 +39,7 @@ const CONST_CHANGE_TYPE_1: u32 = 0;
3939
const CONST_CHANGE_TYPE_2: Option<u32> = None;
4040

4141
#[cfg(not(cfail1))]
42-
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
42+
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
4343
#[rustc_clean(cfg="cfail3")]
4444
const CONST_CHANGE_TYPE_2: Option<u64> = None;
4545

@@ -99,11 +99,11 @@ mod const_change_type_indirectly {
9999
#[cfg(not(cfail1))]
100100
use super::ReferencedType2 as Type;
101101

102-
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
102+
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
103103
#[rustc_clean(cfg="cfail3")]
104104
const CONST_CHANGE_TYPE_INDIRECTLY_1: Type = Type;
105105

106-
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
106+
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
107107
#[rustc_clean(cfg="cfail3")]
108108
const CONST_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None;
109109
}

tests/incremental/hashes/enum_constructors.rs

+6-30
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,9 @@ pub mod change_constructor_path_indirectly_struct_like {
148148
#[cfg(not(any(cfail1,cfail4)))]
149149
use super::Enum2 as TheEnum;
150150

151-
#[rustc_clean(
152-
cfg="cfail2",
153-
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,\
154-
typeck"
155-
)]
151+
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
156152
#[rustc_clean(cfg="cfail3")]
157-
#[rustc_clean(
158-
cfg="cfail5",
159-
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,\
160-
typeck"
161-
)]
153+
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
162154
#[rustc_clean(cfg="cfail6")]
163155
pub fn function() -> TheEnum {
164156
TheEnum::Struct {
@@ -261,17 +253,9 @@ pub mod change_constructor_path_indirectly_tuple_like {
261253
#[cfg(not(any(cfail1,cfail4)))]
262254
use super::Enum2 as TheEnum;
263255

264-
#[rustc_clean(
265-
cfg="cfail2",
266-
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,\
267-
typeck"
268-
)]
256+
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
269257
#[rustc_clean(cfg="cfail3")]
270-
#[rustc_clean(
271-
cfg="cfail5",
272-
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,\
273-
typeck"
274-
)]
258+
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
275259
#[rustc_clean(cfg="cfail6")]
276260
pub fn function() -> TheEnum {
277261
TheEnum::Tuple(0, 1, 2)
@@ -350,17 +334,9 @@ pub mod change_constructor_path_indirectly_c_like {
350334
#[cfg(not(any(cfail1,cfail4)))]
351335
use super::Clike2 as TheEnum;
352336

353-
#[rustc_clean(
354-
cfg="cfail2",
355-
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,\
356-
typeck"
357-
)]
337+
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
358338
#[rustc_clean(cfg="cfail3")]
359-
#[rustc_clean(
360-
cfg="cfail5",
361-
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,\
362-
typeck"
363-
)]
339+
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
364340
#[rustc_clean(cfg="cfail6")]
365341
pub fn function() -> TheEnum {
366342
TheEnum::B

0 commit comments

Comments
 (0)