Skip to content

Commit 173e8c1

Browse files
committed
finish statics.rs
1 parent ba0cba9 commit 173e8c1

File tree

1 file changed

+26
-34
lines changed

1 file changed

+26
-34
lines changed

src/test/incremental/hashes/statics.rs

Lines changed: 26 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
static STATIC_VISIBILITY: u8 = 0;
3333

3434
#[cfg(not(cfail1))]
35-
#[rustc_dirty(label="Hir", cfg="cfail2")]
36-
#[rustc_clean(label="Hir", cfg="cfail3")]
35+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody")]
36+
#[rustc_clean(cfg="cfail3")]
3737
#[rustc_metadata_dirty(cfg="cfail2")]
3838
#[rustc_metadata_clean(cfg="cfail3")]
3939
pub static STATIC_VISIBILITY: u8 = 0;
@@ -44,8 +44,8 @@ pub static STATIC_VISIBILITY: u8 = 0;
4444
static STATIC_MUTABILITY: u8 = 0;
4545

4646
#[cfg(not(cfail1))]
47-
#[rustc_dirty(label="Hir", cfg="cfail2")]
48-
#[rustc_clean(label="Hir", cfg="cfail3")]
47+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody")]
48+
#[rustc_clean(cfg="cfail3")]
4949
#[rustc_metadata_dirty(cfg="cfail2")]
5050
#[rustc_metadata_clean(cfg="cfail3")]
5151
static mut STATIC_MUTABILITY: u8 = 0;
@@ -56,8 +56,8 @@ static mut STATIC_MUTABILITY: u8 = 0;
5656
static STATIC_LINKAGE: u8 = 0;
5757

5858
#[cfg(not(cfail1))]
59-
#[rustc_dirty(label="Hir", cfg="cfail2")]
60-
#[rustc_clean(label="Hir", cfg="cfail3")]
59+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody")]
60+
#[rustc_clean(cfg="cfail3")]
6161
#[rustc_metadata_dirty(cfg="cfail2")]
6262
#[rustc_metadata_clean(cfg="cfail3")]
6363
#[linkage="weak_odr"]
@@ -69,8 +69,8 @@ static STATIC_LINKAGE: u8 = 0;
6969
static STATIC_NO_MANGLE: u8 = 0;
7070

7171
#[cfg(not(cfail1))]
72-
#[rustc_dirty(label="Hir", cfg="cfail2")]
73-
#[rustc_clean(label="Hir", cfg="cfail3")]
72+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody")]
73+
#[rustc_clean(cfg="cfail3")]
7474
#[rustc_metadata_dirty(cfg="cfail2")]
7575
#[rustc_metadata_clean(cfg="cfail3")]
7676
#[no_mangle]
@@ -82,8 +82,8 @@ static STATIC_NO_MANGLE: u8 = 0;
8282
static STATIC_THREAD_LOCAL: u8 = 0;
8383

8484
#[cfg(not(cfail1))]
85-
#[rustc_dirty(label="Hir", cfg="cfail2")]
86-
#[rustc_clean(label="Hir", cfg="cfail3")]
85+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody")]
86+
#[rustc_clean(cfg="cfail3")]
8787
#[rustc_metadata_dirty(cfg="cfail2")]
8888
#[rustc_metadata_clean(cfg="cfail3")]
8989
#[thread_local]
@@ -95,8 +95,8 @@ static STATIC_THREAD_LOCAL: u8 = 0;
9595
static STATIC_CHANGE_TYPE_1: i16 = 0;
9696

9797
#[cfg(not(cfail1))]
98-
#[rustc_dirty(label="Hir", cfg="cfail2")]
99-
#[rustc_clean(label="Hir", cfg="cfail3")]
98+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody,TypeOfItem")]
99+
#[rustc_clean(cfg="cfail3")]
100100
#[rustc_metadata_dirty(cfg="cfail2")]
101101
#[rustc_metadata_clean(cfg="cfail3")]
102102
static STATIC_CHANGE_TYPE_1: u64 = 0;
@@ -107,8 +107,8 @@ static STATIC_CHANGE_TYPE_1: u64 = 0;
107107
static STATIC_CHANGE_TYPE_2: Option<i8> = None;
108108

109109
#[cfg(not(cfail1))]
110-
#[rustc_dirty(label="Hir", cfg="cfail2")]
111-
#[rustc_clean(label="Hir", cfg="cfail3")]
110+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody,TypeOfItem")]
111+
#[rustc_clean(cfg="cfail3")]
112112
#[rustc_metadata_dirty(cfg="cfail2")]
113113
#[rustc_metadata_clean(cfg="cfail3")]
114114
static STATIC_CHANGE_TYPE_2: Option<u16> = None;
@@ -119,10 +119,8 @@ static STATIC_CHANGE_TYPE_2: Option<u16> = None;
119119
static STATIC_CHANGE_VALUE_1: i16 = 1;
120120

121121
#[cfg(not(cfail1))]
122-
#[rustc_clean(label="Hir", cfg="cfail2")]
123-
#[rustc_clean(label="Hir", cfg="cfail3")]
124-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
125-
#[rustc_clean(label="HirBody", cfg="cfail3")]
122+
#[rustc_clean(cfg="cfail2", except="HirBody")]
123+
#[rustc_clean(cfg="cfail3")]
126124
#[rustc_metadata_clean(cfg="cfail2")]
127125
#[rustc_metadata_clean(cfg="cfail3")]
128126
static STATIC_CHANGE_VALUE_1: i16 = 2;
@@ -133,10 +131,8 @@ static STATIC_CHANGE_VALUE_1: i16 = 2;
133131
static STATIC_CHANGE_VALUE_2: i16 = 1 + 1;
134132

135133
#[cfg(not(cfail1))]
136-
#[rustc_clean(label="Hir", cfg="cfail2")]
137-
#[rustc_clean(label="Hir", cfg="cfail3")]
138-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
139-
#[rustc_clean(label="HirBody", cfg="cfail3")]
134+
#[rustc_clean(cfg="cfail2", except="HirBody")]
135+
#[rustc_clean(cfg="cfail3")]
140136
#[rustc_metadata_clean(cfg="cfail2")]
141137
#[rustc_metadata_clean(cfg="cfail3")]
142138
static STATIC_CHANGE_VALUE_2: i16 = 1 + 2;
@@ -146,10 +142,8 @@ static STATIC_CHANGE_VALUE_2: i16 = 1 + 2;
146142
static STATIC_CHANGE_VALUE_3: i16 = 2 + 3;
147143

148144
#[cfg(not(cfail1))]
149-
#[rustc_clean(label="Hir", cfg="cfail2")]
150-
#[rustc_clean(label="Hir", cfg="cfail3")]
151-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
152-
#[rustc_clean(label="HirBody", cfg="cfail3")]
145+
#[rustc_clean(cfg="cfail2", except="HirBody")]
146+
#[rustc_clean(cfg="cfail3")]
153147
#[rustc_metadata_clean(cfg="cfail2")]
154148
#[rustc_metadata_clean(cfg="cfail3")]
155149
static STATIC_CHANGE_VALUE_3: i16 = 2 * 3;
@@ -159,10 +153,8 @@ static STATIC_CHANGE_VALUE_3: i16 = 2 * 3;
159153
static STATIC_CHANGE_VALUE_4: i16 = 1 + 2 * 3;
160154

161155
#[cfg(not(cfail1))]
162-
#[rustc_clean(label="Hir", cfg="cfail2")]
163-
#[rustc_clean(label="Hir", cfg="cfail3")]
164-
#[rustc_dirty(label="HirBody", cfg="cfail2")]
165-
#[rustc_clean(label="HirBody", cfg="cfail3")]
156+
#[rustc_clean(cfg="cfail2", except="HirBody")]
157+
#[rustc_clean(cfg="cfail3")]
166158
#[rustc_metadata_clean(cfg="cfail2")]
167159
#[rustc_metadata_clean(cfg="cfail3")]
168160
static STATIC_CHANGE_VALUE_4: i16 = 1 + 2 * 4;
@@ -179,14 +171,14 @@ mod static_change_type_indirectly {
179171
#[cfg(not(cfail1))]
180172
use super::ReferencedType2 as Type;
181173

182-
#[rustc_dirty(label="Hir", cfg="cfail2")]
183-
#[rustc_clean(label="Hir", cfg="cfail3")]
174+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody,TypeOfItem")]
175+
#[rustc_clean(cfg="cfail3")]
184176
#[rustc_metadata_dirty(cfg="cfail2")]
185177
#[rustc_metadata_clean(cfg="cfail3")]
186178
static STATIC_CHANGE_TYPE_INDIRECTLY_1: Type = Type;
187179

188-
#[rustc_dirty(label="Hir", cfg="cfail2")]
189-
#[rustc_clean(label="Hir", cfg="cfail3")]
180+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody,TypeOfItem")]
181+
#[rustc_clean(cfg="cfail3")]
190182
#[rustc_metadata_dirty(cfg="cfail2")]
191183
#[rustc_metadata_clean(cfg="cfail3")]
192184
static STATIC_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None;

0 commit comments

Comments
 (0)