Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1bfb441

Browse files
committedFeb 10, 2019
Auto merge of #57770 - Zoxc:no-hash-query, r=michaelwoerister
Add a query type which is always marked as red if it runs This is useful for queries which produce results which are very likely to change if their inputs do. I also expect this to be useful for end to end queries because 1) we don't need `HashStable` impls and 2) we avoid the overhead of hashing the result of large results like the AST or the HIR map. r? @michaelwoerister
2 parents abcfc3b + b4a6f59 commit 1bfb441

26 files changed

+260
-215
lines changed
 

‎src/librustc/dep_graph/graph.rs

Lines changed: 54 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ struct DepGraphData {
7979
loaded_from_cache: Lock<FxHashMap<DepNodeIndex, bool>>,
8080
}
8181

82+
pub fn hash_result<R>(hcx: &mut StableHashingContext<'_>, result: &R) -> Option<Fingerprint>
83+
where
84+
R: for<'a> HashStable<StableHashingContext<'a>>,
85+
{
86+
let mut stable_hasher = StableHasher::new();
87+
result.hash_stable(hcx, &mut stable_hasher);
88+
89+
Some(stable_hasher.finish())
90+
}
91+
8292
impl DepGraph {
8393

8494
pub fn new(prev_graph: PreviousDepGraph,
@@ -178,14 +188,16 @@ impl DepGraph {
178188
/// `arg` parameter.
179189
///
180190
/// [rustc guide]: https://rust-lang.github.io/rustc-guide/incremental-compilation.html
181-
pub fn with_task<'gcx, C, A, R>(&self,
182-
key: DepNode,
183-
cx: C,
184-
arg: A,
185-
task: fn(C, A) -> R)
186-
-> (R, DepNodeIndex)
187-
where C: DepGraphSafe + StableHashingContextProvider<'gcx>,
188-
R: HashStable<StableHashingContext<'gcx>>,
191+
pub fn with_task<'a, C, A, R>(
192+
&self,
193+
key: DepNode,
194+
cx: C,
195+
arg: A,
196+
task: fn(C, A) -> R,
197+
hash_result: impl FnOnce(&mut StableHashingContext<'_>, &R) -> Option<Fingerprint>,
198+
) -> (R, DepNodeIndex)
199+
where
200+
C: DepGraphSafe + StableHashingContextProvider<'a>,
189201
{
190202
self.with_task_impl(key, cx, arg, false, task,
191203
|_key| Some(TaskDeps {
@@ -196,17 +208,18 @@ impl DepGraph {
196208
}),
197209
|data, key, fingerprint, task| {
198210
data.borrow_mut().complete_task(key, task.unwrap(), fingerprint)
199-
})
211+
},
212+
hash_result)
200213
}
201214

202215
/// Creates a new dep-graph input with value `input`
203-
pub fn input_task<'gcx, C, R>(&self,
216+
pub fn input_task<'a, C, R>(&self,
204217
key: DepNode,
205218
cx: C,
206219
input: R)
207220
-> (R, DepNodeIndex)
208-
where C: DepGraphSafe + StableHashingContextProvider<'gcx>,
209-
R: HashStable<StableHashingContext<'gcx>>,
221+
where C: DepGraphSafe + StableHashingContextProvider<'a>,
222+
R: for<'b> HashStable<StableHashingContext<'b>>,
210223
{
211224
fn identity_fn<C, A>(_: C, arg: A) -> A {
212225
arg
@@ -216,10 +229,11 @@ impl DepGraph {
216229
|_| None,
217230
|data, key, fingerprint, _| {
218231
data.borrow_mut().alloc_node(key, SmallVec::new(), fingerprint)
219-
})
232+
},
233+
hash_result::<R>)
220234
}
221235

222-
fn with_task_impl<'gcx, C, A, R>(
236+
fn with_task_impl<'a, C, A, R>(
223237
&self,
224238
key: DepNode,
225239
cx: C,
@@ -230,11 +244,11 @@ impl DepGraph {
230244
finish_task_and_alloc_depnode: fn(&Lock<CurrentDepGraph>,
231245
DepNode,
232246
Fingerprint,
233-
Option<TaskDeps>) -> DepNodeIndex
247+
Option<TaskDeps>) -> DepNodeIndex,
248+
hash_result: impl FnOnce(&mut StableHashingContext<'_>, &R) -> Option<Fingerprint>,
234249
) -> (R, DepNodeIndex)
235250
where
236-
C: DepGraphSafe + StableHashingContextProvider<'gcx>,
237-
R: HashStable<StableHashingContext<'gcx>>,
251+
C: DepGraphSafe + StableHashingContextProvider<'a>,
238252
{
239253
if let Some(ref data) = self.data {
240254
let task_deps = create_task(key).map(|deps| Lock::new(deps));
@@ -269,31 +283,33 @@ impl DepGraph {
269283
profq_msg(hcx.sess(), ProfileQueriesMsg::TaskEnd)
270284
};
271285

272-
let mut stable_hasher = StableHasher::new();
273-
result.hash_stable(&mut hcx, &mut stable_hasher);
274-
275-
let current_fingerprint = stable_hasher.finish();
286+
let current_fingerprint = hash_result(&mut hcx, &result);
276287

277288
let dep_node_index = finish_task_and_alloc_depnode(
278289
&data.current,
279290
key,
280-
current_fingerprint,
291+
current_fingerprint.unwrap_or(Fingerprint::ZERO),
281292
task_deps.map(|lock| lock.into_inner()),
282293
);
283294

284295
// Determine the color of the new DepNode.
285296
if let Some(prev_index) = data.previous.node_to_index_opt(&key) {
286297
let prev_fingerprint = data.previous.fingerprint_by_index(prev_index);
287298

288-
let color = if current_fingerprint == prev_fingerprint {
289-
DepNodeColor::Green(dep_node_index)
299+
let color = if let Some(current_fingerprint) = current_fingerprint {
300+
if current_fingerprint == prev_fingerprint {
301+
DepNodeColor::Green(dep_node_index)
302+
} else {
303+
DepNodeColor::Red
304+
}
290305
} else {
306+
// Mark the node as Red if we can't hash the result
291307
DepNodeColor::Red
292308
};
293309

294310
debug_assert!(data.colors.get(prev_index).is_none(),
295-
"DepGraph::with_task() - Duplicate DepNodeColor \
296-
insertion for {:?}", key);
311+
"DepGraph::with_task() - Duplicate DepNodeColor \
312+
insertion for {:?}", key);
297313

298314
data.colors.insert(prev_index, color);
299315
}
@@ -342,14 +358,16 @@ impl DepGraph {
342358

343359
/// Execute something within an "eval-always" task which is a task
344360
// that runs whenever anything changes.
345-
pub fn with_eval_always_task<'gcx, C, A, R>(&self,
346-
key: DepNode,
347-
cx: C,
348-
arg: A,
349-
task: fn(C, A) -> R)
350-
-> (R, DepNodeIndex)
351-
where C: DepGraphSafe + StableHashingContextProvider<'gcx>,
352-
R: HashStable<StableHashingContext<'gcx>>,
361+
pub fn with_eval_always_task<'a, C, A, R>(
362+
&self,
363+
key: DepNode,
364+
cx: C,
365+
arg: A,
366+
task: fn(C, A) -> R,
367+
hash_result: impl FnOnce(&mut StableHashingContext<'_>, &R) -> Option<Fingerprint>,
368+
) -> (R, DepNodeIndex)
369+
where
370+
C: DepGraphSafe + StableHashingContextProvider<'a>,
353371
{
354372
self.with_task_impl(key, cx, arg, false, task,
355373
|_| None,
@@ -359,7 +377,8 @@ impl DepGraph {
359377
&DepNode::new_no_params(DepKind::Krate)
360378
];
361379
current.alloc_node(key, smallvec![krate_idx], fingerprint)
362-
})
380+
},
381+
hash_result)
363382
}
364383

365384
#[inline]

‎src/librustc/dep_graph/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub mod cgu_reuse_tracker;
1010

1111
pub use self::dep_tracking_map::{DepTrackingMap, DepTrackingMapConfig};
1212
pub use self::dep_node::{DepNode, DepKind, DepConstructor, WorkProductId, label_strs};
13-
pub use self::graph::{DepGraph, WorkProduct, DepNodeIndex, DepNodeColor, TaskDeps};
13+
pub use self::graph::{DepGraph, WorkProduct, DepNodeIndex, DepNodeColor, TaskDeps, hash_result};
1414
pub use self::graph::WorkProductFileKind;
1515
pub use self::prev::PreviousDepGraph;
1616
pub use self::query::DepGraphQuery;

‎src/librustc/hir/map/collector.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ pub(super) struct NodeCollector<'a, 'hir> {
4848
hir_body_nodes: Vec<(DefPathHash, Fingerprint)>,
4949
}
5050

51-
fn input_dep_node_and_hash<'a, I>(
51+
fn input_dep_node_and_hash<I>(
5252
dep_graph: &DepGraph,
53-
hcx: &mut StableHashingContext<'a>,
53+
hcx: &mut StableHashingContext<'_>,
5454
dep_node: DepNode,
5555
input: I,
5656
) -> (DepNodeIndex, Fingerprint)
5757
where
58-
I: HashStable<StableHashingContext<'a>>,
58+
I: for<'a> HashStable<StableHashingContext<'a>>,
5959
{
6060
let dep_node_index = dep_graph.input_task(dep_node, &mut *hcx, &input).1;
6161

@@ -70,15 +70,15 @@ where
7070
(dep_node_index, hash)
7171
}
7272

73-
fn alloc_hir_dep_nodes<'a, I>(
73+
fn alloc_hir_dep_nodes<I>(
7474
dep_graph: &DepGraph,
75-
hcx: &mut StableHashingContext<'a>,
75+
hcx: &mut StableHashingContext<'_>,
7676
def_path_hash: DefPathHash,
7777
item_like: I,
7878
hir_body_nodes: &mut Vec<(DefPathHash, Fingerprint)>,
7979
) -> (DepNodeIndex, DepNodeIndex)
8080
where
81-
I: HashStable<StableHashingContext<'a>>,
81+
I: for<'a> HashStable<StableHashingContext<'a>>,
8282
{
8383
let sig = dep_graph.input_task(
8484
def_path_hash.to_dep_node(DepKind::Hir),
@@ -286,7 +286,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
286286
self.parent_node = parent_node;
287287
}
288288

289-
fn with_dep_node_owner<T: HashStable<StableHashingContext<'a>>,
289+
fn with_dep_node_owner<T: for<'b> HashStable<StableHashingContext<'b>>,
290290
F: FnOnce(&mut Self)>(&mut self,
291291
dep_node_owner: DefIndex,
292292
item_like: &T,

‎src/librustc/ty/context.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! type context book-keeping
22
33
use crate::dep_graph::DepGraph;
4-
use crate::dep_graph::{DepNode, DepConstructor};
4+
use crate::dep_graph::{self, DepNode, DepConstructor};
55
use crate::errors::DiagnosticBuilder;
66
use crate::session::Session;
77
use crate::session::config::{BorrowckMode, OutputFilenames};
@@ -1430,7 +1430,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
14301430
self.dep_graph.with_task(dep_node,
14311431
self,
14321432
crate_hash,
1433-
|_, x| x // No transformation needed
1433+
|_, x| x, // No transformation needed
1434+
dep_graph::hash_result,
14341435
);
14351436
}
14361437
}

‎src/librustc/ty/query/config.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::hash::Hash;
2020
use std::fmt::Debug;
2121
use syntax_pos::symbol::InternedString;
2222
use rustc_data_structures::sync::Lock;
23-
use rustc_data_structures::stable_hasher::HashStable;
23+
use rustc_data_structures::fingerprint::Fingerprint;
2424
use crate::ich::StableHashingContext;
2525

2626
// Query configuration and description traits.
@@ -30,7 +30,7 @@ pub trait QueryConfig<'tcx> {
3030
const CATEGORY: ProfileCategory;
3131

3232
type Key: Eq + Hash + Clone + Debug;
33-
type Value: Clone + for<'a> HashStable<StableHashingContext<'a>>;
33+
type Value: Clone;
3434
}
3535

3636
pub(super) trait QueryAccessors<'tcx>: QueryConfig<'tcx> {
@@ -44,6 +44,11 @@ pub(super) trait QueryAccessors<'tcx>: QueryConfig<'tcx> {
4444
// Don't use this method to compute query results, instead use the methods on TyCtxt
4545
fn compute(tcx: TyCtxt<'_, 'tcx, '_>, key: Self::Key) -> Self::Value;
4646

47+
fn hash_result(
48+
hcx: &mut StableHashingContext<'_>,
49+
result: &Self::Value
50+
) -> Option<Fingerprint>;
51+
4752
fn handle_cycle_error(tcx: TyCtxt<'_, 'tcx, '_>) -> Self::Value;
4853
}
4954

‎src/librustc/ty/query/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::dep_graph::{DepConstructor, DepNode};
1+
use crate::dep_graph::{self, DepConstructor, DepNode};
22
use crate::errors::DiagnosticBuilder;
33
use crate::hir::def_id::{CrateNum, DefId, DefIndex};
44
use crate::hir::def::{Def, Export};
@@ -49,6 +49,7 @@ use rustc_data_structures::indexed_vec::IndexVec;
4949
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
5050
use rustc_data_structures::stable_hasher::StableVec;
5151
use rustc_data_structures::sync::Lrc;
52+
use rustc_data_structures::fingerprint::Fingerprint;
5253
use rustc_target::spec::PanicStrategy;
5354

5455
use std::borrow::Cow;
@@ -233,9 +234,9 @@ define_queries! { <'tcx>
233234
/// ready for const evaluation.
234235
///
235236
/// See the README for the `mir` module for details.
236-
[] fn mir_const: MirConst(DefId) -> &'tcx Steal<mir::Mir<'tcx>>,
237+
[no_hash] fn mir_const: MirConst(DefId) -> &'tcx Steal<mir::Mir<'tcx>>,
237238

238-
[] fn mir_validated: MirValidated(DefId) -> &'tcx Steal<mir::Mir<'tcx>>,
239+
[no_hash] fn mir_validated: MirValidated(DefId) -> &'tcx Steal<mir::Mir<'tcx>>,
239240

240241
/// MIR after our optimization passes have run. This is MIR that is ready
241242
/// for codegen. This is also the only query that can fetch non-local MIR, at present.

‎src/librustc/ty/query/plumbing.rs

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
499499
dep_node: &DepNode,
500500
dep_node_index: DepNodeIndex,
501501
) {
502-
use rustc_data_structures::stable_hasher::{StableHasher, HashStable};
503502
use crate::ich::Fingerprint;
504503

505504
assert!(Some(self.dep_graph.fingerprint_of(dep_node_index)) ==
@@ -509,11 +508,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
509508

510509
debug!("BEGIN verify_ich({:?})", dep_node);
511510
let mut hcx = self.create_stable_hashing_context();
512-
let mut hasher = StableHasher::new();
513511

514-
result.hash_stable(&mut hcx, &mut hasher);
515-
516-
let new_hash: Fingerprint = hasher.finish();
512+
let new_hash = Q::hash_result(&mut hcx, result).unwrap_or(Fingerprint::ZERO);
517513
debug!("END verify_ich({:?})", dep_node);
518514

519515
let old_hash = self.dep_graph.fingerprint_of(dep_node_index);
@@ -549,12 +545,14 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
549545
tcx.dep_graph.with_eval_always_task(dep_node,
550546
tcx,
551547
key,
552-
Q::compute)
548+
Q::compute,
549+
Q::hash_result)
553550
} else {
554551
tcx.dep_graph.with_task(dep_node,
555552
tcx,
556553
key,
557-
Q::compute)
554+
Q::compute,
555+
Q::hash_result)
558556
}
559557
})
560558
});
@@ -679,6 +677,18 @@ macro_rules! handle_cycle_error {
679677
};
680678
}
681679

680+
macro_rules! hash_result {
681+
([][$hcx:expr, $result:expr]) => {{
682+
dep_graph::hash_result($hcx, &$result)
683+
}};
684+
([no_hash$(, $modifiers:ident)*][$hcx:expr, $result:expr]) => {{
685+
None
686+
}};
687+
([$other:ident$(, $modifiers:ident)*][$($args:tt)*]) => {
688+
hash_result!([$($modifiers),*][$($args)*])
689+
};
690+
}
691+
682692
macro_rules! define_queries {
683693
(<$tcx:tt> $($category:tt {
684694
$($(#[$attr:meta])* [$($modifiers:tt)*] fn $name:ident: $node:ident($K:ty) -> $V:ty,)*
@@ -966,6 +976,13 @@ macro_rules! define_queries_inner {
966976
})
967977
}
968978

979+
fn hash_result(
980+
_hcx: &mut StableHashingContext<'_>,
981+
_result: &Self::Value
982+
) -> Option<Fingerprint> {
983+
hash_result!([$($modifiers)*][_hcx, _result])
984+
}
985+
969986
fn handle_cycle_error(tcx: TyCtxt<'_, 'tcx, '_>) -> Self::Value {
970987
handle_cycle_error!([$($modifiers)*][tcx])
971988
}

‎src/librustc_codegen_llvm/base.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use super::LlvmCodegenBackend;
2020

2121
use llvm;
2222
use metadata;
23+
use rustc::dep_graph;
2324
use rustc::mir::mono::{Linkage, Visibility, Stats};
2425
use rustc::middle::cstore::{EncodedMetadata};
2526
use rustc::ty::TyCtxt;
@@ -145,7 +146,8 @@ pub fn compile_codegen_unit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
145146
let ((stats, module), _) = tcx.dep_graph.with_task(dep_node,
146147
tcx,
147148
cgu_name,
148-
module_codegen);
149+
module_codegen,
150+
dep_graph::hash_result);
149151
let time_to_codegen = start_time.elapsed();
150152

151153
// We assume that the cost to run LLVM on a CGU is proportional to

‎src/librustc_incremental/persist/dirty_clean.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ const BASE_IMPL: &[&str] = &[
6767
label_strs::ImplTraitRef,
6868
];
6969

70-
/// DepNodes for MirValidated/Optimized, which is relevant in "executable"
70+
/// DepNodes for MirBuilt/Optimized, which is relevant in "executable"
7171
/// code, i.e., functions+methods
7272
const BASE_MIR: &[&str] = &[
7373
label_strs::MirOptimized,
74-
label_strs::MirValidated,
74+
label_strs::MirBuilt,
7575
];
7676

7777
/// Struct, Enum and Union DepNodes

‎src/test/incremental/hashes/call_expressions.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn change_callee_function() {
2525
}
2626

2727
#[cfg(not(cfail1))]
28-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
28+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
2929
#[rustc_clean(cfg="cfail3")]
3030
pub fn change_callee_function() {
3131
callee2(1, 2)
@@ -40,7 +40,7 @@ pub fn change_argument_function() {
4040
}
4141

4242
#[cfg(not(cfail1))]
43-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
43+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
4444
#[rustc_clean(cfg="cfail3")]
4545
pub fn change_argument_function() {
4646
callee1(1, 3)
@@ -81,7 +81,7 @@ pub fn change_callee_method() {
8181
}
8282

8383
#[cfg(not(cfail1))]
84-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
84+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
8585
#[rustc_clean(cfg="cfail3")]
8686
pub fn change_callee_method() {
8787
let s = Struct;
@@ -98,7 +98,7 @@ pub fn change_argument_method() {
9898
}
9999

100100
#[cfg(not(cfail1))]
101-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
101+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
102102
#[rustc_clean(cfg="cfail3")]
103103
pub fn change_argument_method() {
104104
let s = Struct;
@@ -115,7 +115,7 @@ pub fn change_ufcs_callee_method() {
115115
}
116116

117117
#[cfg(not(cfail1))]
118-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
118+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
119119
#[rustc_clean(cfg="cfail3")]
120120
pub fn change_ufcs_callee_method() {
121121
let s = Struct;
@@ -132,7 +132,7 @@ pub fn change_argument_method_ufcs() {
132132
}
133133

134134
#[cfg(not(cfail1))]
135-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
135+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
136136
#[rustc_clean(cfg="cfail3")]
137137
pub fn change_argument_method_ufcs() {
138138
let s = Struct;
@@ -149,7 +149,7 @@ pub fn change_to_ufcs() {
149149
}
150150

151151
#[cfg(not(cfail1))]
152-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
152+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
153153
#[rustc_clean(cfg="cfail3")]
154154
// One might think this would be expanded in the HirBody/Mir, but it actually
155155
// results in slightly different Hir/Mir.
@@ -171,7 +171,7 @@ pub mod change_ufcs_callee_indirectly {
171171
#[cfg(not(cfail1))]
172172
use super::Struct2 as Struct;
173173

174-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
174+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
175175
#[rustc_clean(cfg="cfail3")]
176176

177177

‎src/test/incremental/hashes/closure_expressions.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn add_parameter() {
3737
}
3838

3939
#[cfg(not(cfail1))]
40-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
40+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
4141
#[rustc_clean(cfg="cfail3")]
4242
pub fn add_parameter() {
4343
let x = 0u32;
@@ -53,7 +53,7 @@ pub fn change_parameter_pattern() {
5353
}
5454

5555
#[cfg(not(cfail1))]
56-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, TypeckTables")]
56+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, TypeckTables")]
5757
#[rustc_clean(cfg="cfail3")]
5858
pub fn change_parameter_pattern() {
5959
let _ = |&x: &u32| x;
@@ -84,7 +84,7 @@ pub fn add_type_ascription_to_parameter() {
8484
}
8585

8686
#[cfg(not(cfail1))]
87-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, TypeckTables")]
87+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, TypeckTables")]
8888
#[rustc_clean(cfg="cfail3")]
8989
pub fn add_type_ascription_to_parameter() {
9090
let closure = |x: u32| x + 1u32;
@@ -101,7 +101,7 @@ pub fn change_parameter_type() {
101101
}
102102

103103
#[cfg(not(cfail1))]
104-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
104+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
105105
#[rustc_clean(cfg="cfail3")]
106106
pub fn change_parameter_type() {
107107
let closure = |x: u16| (x as u64) + 1;

‎src/test/incremental/hashes/enum_constructors.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn change_field_value_struct_like() -> Enum {
3434
}
3535

3636
#[cfg(not(cfail1))]
37-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
37+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
3838
#[rustc_clean(cfg="cfail3")]
3939
pub fn change_field_value_struct_like() -> Enum {
4040
Enum::Struct {
@@ -96,7 +96,7 @@ pub fn change_constructor_path_struct_like() {
9696
}
9797

9898
#[cfg(not(cfail1))]
99-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
99+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
100100
#[rustc_clean(cfg="cfail3")]
101101
pub fn change_constructor_path_struct_like() {
102102
let _ = Enum2::Struct {
@@ -119,7 +119,7 @@ pub fn change_constructor_variant_struct_like() {
119119
}
120120

121121
#[cfg(not(cfail1))]
122-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
122+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
123123
#[rustc_clean(cfg="cfail3")]
124124
pub fn change_constructor_variant_struct_like() {
125125
let _ = Enum2::Struct2 {
@@ -139,7 +139,7 @@ pub mod change_constructor_path_indirectly_struct_like {
139139

140140
#[rustc_clean(
141141
cfg="cfail2",
142-
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,\
142+
except="FnSignature,Hir,HirBody,MirOptimized,MirBuilt,\
143143
TypeckTables"
144144
)]
145145
#[rustc_clean(cfg="cfail3")]
@@ -161,7 +161,7 @@ pub mod change_constructor_variant_indirectly_struct_like {
161161
#[cfg(not(cfail1))]
162162
use super::Enum2::Struct2 as Variant;
163163

164-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
164+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
165165
#[rustc_clean(cfg="cfail3")]
166166
pub fn function() -> Enum2 {
167167
Variant {
@@ -180,7 +180,7 @@ pub fn change_field_value_tuple_like() -> Enum {
180180
}
181181

182182
#[cfg(not(cfail1))]
183-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
183+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
184184
#[rustc_clean(cfg="cfail3")]
185185
pub fn change_field_value_tuple_like() -> Enum {
186186
Enum::Tuple(0, 1, 3)
@@ -197,7 +197,7 @@ pub fn change_constructor_path_tuple_like() {
197197
#[cfg(not(cfail1))]
198198
#[rustc_clean(
199199
cfg="cfail2",
200-
except="HirBody,MirOptimized,MirValidated,TypeckTables"
200+
except="HirBody,MirOptimized,MirBuilt,TypeckTables"
201201
)]
202202
#[rustc_clean(cfg="cfail3")]
203203
pub fn change_constructor_path_tuple_like() {
@@ -215,7 +215,7 @@ pub fn change_constructor_variant_tuple_like() {
215215
#[cfg(not(cfail1))]
216216
#[rustc_clean(
217217
cfg="cfail2",
218-
except="HirBody,MirOptimized,MirValidated,TypeckTables"
218+
except="HirBody,MirOptimized,MirBuilt,TypeckTables"
219219
)]
220220
#[rustc_clean(cfg="cfail3")]
221221
pub fn change_constructor_variant_tuple_like() {
@@ -232,7 +232,7 @@ pub mod change_constructor_path_indirectly_tuple_like {
232232

233233
#[rustc_clean(
234234
cfg="cfail2",
235-
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,\
235+
except="FnSignature,Hir,HirBody,MirOptimized,MirBuilt,\
236236
TypeckTables"
237237
)]
238238
#[rustc_clean(cfg="cfail3")]
@@ -251,7 +251,7 @@ pub mod change_constructor_variant_indirectly_tuple_like {
251251
#[cfg(not(cfail1))]
252252
use super::Enum2::Tuple2 as Variant;
253253

254-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
254+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
255255
#[rustc_clean(cfg="cfail3")]
256256
pub fn function() -> Enum2 {
257257
Variant(0, 1, 2)
@@ -278,7 +278,7 @@ pub fn change_constructor_path_c_like() {
278278
}
279279

280280
#[cfg(not(cfail1))]
281-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
281+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
282282
#[rustc_clean(cfg="cfail3")]
283283
pub fn change_constructor_path_c_like() {
284284
let _ = Clike2::B;
@@ -293,7 +293,7 @@ pub fn change_constructor_variant_c_like() {
293293
}
294294

295295
#[cfg(not(cfail1))]
296-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
296+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
297297
#[rustc_clean(cfg="cfail3")]
298298
pub fn change_constructor_variant_c_like() {
299299
let _ = Clike::C;
@@ -309,7 +309,7 @@ pub mod change_constructor_path_indirectly_c_like {
309309

310310
#[rustc_clean(
311311
cfg="cfail2",
312-
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,\
312+
except="FnSignature,Hir,HirBody,MirOptimized,MirBuilt,\
313313
TypeckTables"
314314
)]
315315
#[rustc_clean(cfg="cfail3")]
@@ -328,7 +328,7 @@ pub mod change_constructor_variant_indirectly_c_like {
328328
#[cfg(not(cfail1))]
329329
use super::Clike::B as Variant;
330330

331-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
331+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
332332
#[rustc_clean(cfg="cfail3")]
333333
pub fn function() -> Clike {
334334
Variant

‎src/test/incremental/hashes/exported_vs_not.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn body_not_exported_to_metadata() -> u32 {
1616
}
1717

1818
#[cfg(not(cfail1))]
19-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
19+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
2020
#[rustc_clean(cfg="cfail3")]
2121
pub fn body_not_exported_to_metadata() -> u32 {
2222
2
@@ -35,7 +35,7 @@ pub fn body_exported_to_metadata_because_of_inline() -> u32 {
3535
}
3636

3737
#[cfg(not(cfail1))]
38-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
38+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
3939
#[rustc_clean(cfg="cfail3")]
4040
#[inline]
4141
pub fn body_exported_to_metadata_because_of_inline() -> u32 {
@@ -55,7 +55,7 @@ pub fn body_exported_to_metadata_because_of_generic() -> u32 {
5555
}
5656

5757
#[cfg(not(cfail1))]
58-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
58+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
5959
#[rustc_clean(cfg="cfail3")]
6060
#[inline]
6161
pub fn body_exported_to_metadata_because_of_generic() -> u32 {

‎src/test/incremental/hashes/for_loops.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
2525
}
2626

2727
#[cfg(not(cfail1))]
28-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
28+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
2929
#[rustc_clean(cfg="cfail3")]
3030
pub fn change_loop_body() {
3131
let mut _x = 0;
@@ -48,7 +48,7 @@ pub fn change_iteration_variable_name() {
4848
}
4949

5050
#[cfg(not(cfail1))]
51-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
51+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
5252
#[rustc_clean(cfg="cfail3")]
5353
pub fn change_iteration_variable_name() {
5454
let mut _x = 0;
@@ -71,7 +71,7 @@ pub fn change_iteration_variable_pattern() {
7171
}
7272

7373
#[cfg(not(cfail1))]
74-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
74+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
7575
#[rustc_clean(cfg="cfail3")]
7676
pub fn change_iteration_variable_pattern() {
7777
let mut _x = 0;
@@ -94,7 +94,7 @@ pub fn change_iterable() {
9494
}
9595

9696
#[cfg(not(cfail1))]
97-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
97+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
9898
#[rustc_clean(cfg="cfail3")]
9999
pub fn change_iterable() {
100100
let mut _x = 0;
@@ -116,7 +116,7 @@ pub fn add_break() {
116116
}
117117

118118
#[cfg(not(cfail1))]
119-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
119+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
120120
#[rustc_clean(cfg="cfail3")]
121121
pub fn add_break() {
122122
let mut _x = 0;
@@ -187,7 +187,7 @@ pub fn change_break_label() {
187187
}
188188

189189
#[cfg(not(cfail1))]
190-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
190+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
191191
#[rustc_clean(cfg="cfail3")]
192192
pub fn change_break_label() {
193193
let mut _x = 0;
@@ -237,7 +237,7 @@ pub fn change_continue_label() {
237237
}
238238

239239
#[cfg(not(cfail1))]
240-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
240+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
241241
#[rustc_clean(cfg="cfail3")]
242242
pub fn change_continue_label() {
243243
let mut _x = 0;
@@ -262,7 +262,7 @@ pub fn change_continue_to_break() {
262262
}
263263

264264
#[cfg(not(cfail1))]
265-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
265+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
266266
#[rustc_clean(cfg="cfail3")]
267267
pub fn change_continue_to_break() {
268268
let mut _x = 0;

‎src/test/incremental/hashes/function_interfaces.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn add_parameter() {}
2424

2525
#[cfg(not(cfail1))]
2626
#[rustc_clean(cfg = "cfail2",
27-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
27+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
2828
#[rustc_clean(cfg = "cfail3")]
2929
pub fn add_parameter(p: i32) {}
3030

@@ -47,7 +47,7 @@ pub fn type_of_parameter(p: i32) {}
4747

4848
#[cfg(not(cfail1))]
4949
#[rustc_clean(cfg = "cfail2",
50-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
50+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
5151
#[rustc_clean(cfg = "cfail3")]
5252
pub fn type_of_parameter(p: i64) {}
5353

@@ -59,7 +59,7 @@ pub fn type_of_parameter_ref(p: &i32) {}
5959

6060
#[cfg(not(cfail1))]
6161
#[rustc_clean(cfg = "cfail2",
62-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
62+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
6363
#[rustc_clean(cfg = "cfail3")]
6464
pub fn type_of_parameter_ref(p: &mut i32) {}
6565

@@ -71,7 +71,7 @@ pub fn order_of_parameters(p1: i32, p2: i64) {}
7171

7272
#[cfg(not(cfail1))]
7373
#[rustc_clean(cfg = "cfail2",
74-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
74+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
7575
#[rustc_clean(cfg = "cfail3")]
7676
pub fn order_of_parameters(p2: i64, p1: i32) {}
7777

@@ -83,7 +83,7 @@ pub fn make_unsafe() {}
8383

8484
#[cfg(not(cfail1))]
8585
#[rustc_clean(cfg = "cfail2",
86-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
86+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
8787
#[rustc_clean(cfg = "cfail3")]
8888
pub unsafe fn make_unsafe() {}
8989

@@ -94,7 +94,7 @@ pub unsafe fn make_unsafe() {}
9494
pub fn make_extern() {}
9595

9696
#[cfg(not(cfail1))]
97-
#[rustc_clean(cfg = "cfail2", except = "Hir, HirBody, TypeckTables, FnSignature")]
97+
#[rustc_clean(cfg = "cfail2", except = "Hir, HirBody, MirBuilt, TypeckTables, FnSignature")]
9898
#[rustc_clean(cfg = "cfail3")]
9999
pub extern "C" fn make_extern() {}
100100

@@ -292,7 +292,7 @@ pub mod change_return_type_indirectly {
292292
use super::ReferencedType2 as ReturnType;
293293

294294
#[rustc_clean(cfg = "cfail2",
295-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
295+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
296296
#[rustc_clean(cfg = "cfail3")]
297297
pub fn indirect_return_type() -> ReturnType {
298298
ReturnType {}
@@ -309,7 +309,7 @@ pub mod change_parameter_type_indirectly {
309309
use super::ReferencedType2 as ParameterType;
310310

311311
#[rustc_clean(cfg = "cfail2",
312-
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
312+
except = "Hir, HirBody, MirBuilt, MirOptimized, TypeckTables, FnSignature")]
313313
#[rustc_clean(cfg = "cfail3")]
314314
pub fn indirect_parameter_type(p: ParameterType) {}
315315
}

‎src/test/incremental/hashes/if_expressions.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn change_condition(x: bool) -> u32 {
2525
}
2626

2727
#[cfg(not(cfail1))]
28-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
28+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
2929
#[rustc_clean(cfg="cfail3")]
3030
pub fn change_condition(x: bool) -> u32 {
3131
if !x {
@@ -46,7 +46,7 @@ pub fn change_then_branch(x: bool) -> u32 {
4646
}
4747

4848
#[cfg(not(cfail1))]
49-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
49+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
5050
#[rustc_clean(cfg="cfail3")]
5151
pub fn change_then_branch(x: bool) -> u32 {
5252
if x {
@@ -69,7 +69,7 @@ pub fn change_else_branch(x: bool) -> u32 {
6969
}
7070

7171
#[cfg(not(cfail1))]
72-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
72+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
7373
#[rustc_clean(cfg="cfail3")]
7474
pub fn change_else_branch(x: bool) -> u32 {
7575
if x {
@@ -120,7 +120,7 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 {
120120
}
121121

122122
#[cfg(not(cfail1))]
123-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
123+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
124124
#[rustc_clean(cfg="cfail3")]
125125
pub fn change_condition_if_let(x: Option<u32>) -> u32 {
126126
if let Some(_) = x {
@@ -143,7 +143,7 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
143143
}
144144

145145
#[cfg(not(cfail1))]
146-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized,TypeckTables")]
146+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
147147
#[rustc_clean(cfg="cfail3")]
148148
pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
149149
if let Some(x) = x {
@@ -166,7 +166,7 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
166166
}
167167

168168
#[cfg(not(cfail1))]
169-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
169+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
170170
#[rustc_clean(cfg="cfail3")]
171171
pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
172172
if let Some(x) = x {

‎src/test/incremental/hashes/inherent_impls.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Foo {
4242
#[rustc_clean(cfg="cfail2")]
4343
#[rustc_clean(cfg="cfail3")]
4444
impl Foo {
45-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
45+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
4646
#[rustc_clean(cfg="cfail3")]
4747
pub fn method_body() {
4848
println!("Hello, world!");
@@ -63,7 +63,7 @@ impl Foo {
6363
#[rustc_clean(cfg="cfail2")]
6464
#[rustc_clean(cfg="cfail3")]
6565
impl Foo {
66-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
66+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
6767
#[rustc_clean(cfg="cfail3")]
6868
#[inline]
6969
pub fn method_body_inlined() {
@@ -114,7 +114,7 @@ impl Foo {
114114
impl Foo {
115115
#[rustc_clean(
116116
cfg="cfail2",
117-
except="Hir,HirBody,FnSignature,TypeckTables,MirOptimized,MirValidated"
117+
except="Hir,HirBody,FnSignature,TypeckTables,MirOptimized,MirBuilt"
118118
)]
119119
#[rustc_clean(cfg="cfail3")]
120120
pub fn method_selfmutness(&mut self) { }
@@ -154,7 +154,7 @@ impl Foo {
154154
impl Foo {
155155
#[rustc_clean(
156156
cfg="cfail2",
157-
except="Hir,HirBody,FnSignature,TypeckTables,MirOptimized,MirValidated"
157+
except="Hir,HirBody,FnSignature,TypeckTables,MirOptimized,MirBuilt"
158158
)]
159159
#[rustc_clean(cfg="cfail3")]
160160
pub fn add_method_parameter(&self, _: i32) { }
@@ -172,7 +172,7 @@ impl Foo {
172172
#[rustc_clean(cfg="cfail2")]
173173
#[rustc_clean(cfg="cfail3")]
174174
impl Foo {
175-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
175+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
176176
#[rustc_clean(cfg="cfail3")]
177177
pub fn change_method_parameter_name(&self, b: i64) { }
178178
}
@@ -191,7 +191,7 @@ impl Foo {
191191
impl Foo {
192192
#[rustc_clean(
193193
cfg="cfail2",
194-
except="Hir,HirBody,FnSignature,MirOptimized,MirValidated,TypeckTables")]
194+
except="Hir,HirBody,FnSignature,MirOptimized,MirBuilt,TypeckTables")]
195195
#[rustc_clean(cfg="cfail3")]
196196
pub fn change_method_return_type(&self) -> u8 { 0 }
197197
}
@@ -226,7 +226,7 @@ impl Foo {
226226
#[rustc_clean(cfg="cfail2")]
227227
#[rustc_clean(cfg="cfail3")]
228228
impl Foo {
229-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
229+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
230230
#[rustc_clean(cfg="cfail3")]
231231
pub fn change_method_parameter_order(&self, b: i64, a: i64) { }
232232
}
@@ -245,7 +245,7 @@ impl Foo {
245245
impl Foo {
246246
#[rustc_clean(
247247
cfg="cfail2",
248-
except="Hir,HirBody,FnSignature,TypeckTables,MirOptimized,MirValidated"
248+
except="Hir,HirBody,FnSignature,TypeckTables,MirOptimized,MirBuilt"
249249
)]
250250
#[rustc_clean(cfg="cfail3")]
251251
pub unsafe fn make_method_unsafe(&self) { }
@@ -263,7 +263,7 @@ impl Foo {
263263
#[rustc_clean(cfg="cfail2")]
264264
#[rustc_clean(cfg="cfail3")]
265265
impl Foo {
266-
#[rustc_clean(cfg="cfail2", except="Hir,HirBody,FnSignature,TypeckTables")]
266+
#[rustc_clean(cfg="cfail2", except="Hir,HirBody,MirBuilt,FnSignature,TypeckTables")]
267267
#[rustc_clean(cfg="cfail3")]
268268
pub extern fn make_method_extern(&self) { }
269269
}
@@ -447,7 +447,7 @@ impl Bar<u32> {
447447
impl<T> Bar<T> {
448448
#[rustc_clean(
449449
cfg="cfail2",
450-
except="GenericsOfItem,FnSignature,TypeckTables,TypeOfItem,MirOptimized,MirValidated"
450+
except="GenericsOfItem,FnSignature,TypeckTables,TypeOfItem,MirOptimized,MirBuilt"
451451
)]
452452
#[rustc_clean(cfg="cfail3")]
453453
pub fn add_type_parameter_to_impl(&self) { }
@@ -465,7 +465,7 @@ impl Bar<u32> {
465465
#[rustc_clean(cfg="cfail2", except="Hir,HirBody")]
466466
#[rustc_clean(cfg="cfail3")]
467467
impl Bar<u64> {
468-
#[rustc_clean(cfg="cfail2", except="FnSignature,MirOptimized,MirValidated,TypeckTables")]
468+
#[rustc_clean(cfg="cfail2", except="FnSignature,MirOptimized,MirBuilt,TypeckTables")]
469469
#[rustc_clean(cfg="cfail3")]
470470
pub fn change_impl_self_type(&self) { }
471471
}

‎src/test/incremental/hashes/inline_asm.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn change_template(a: i32) -> i32 {
3333
}
3434

3535
#[cfg(not(cfail1))]
36-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
36+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
3737
#[rustc_clean(cfg="cfail3")]
3838
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
3939
pub fn change_template(a: i32) -> i32 {
@@ -69,7 +69,7 @@ pub fn change_output(a: i32) -> i32 {
6969
}
7070

7171
#[cfg(not(cfail1))]
72-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
72+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
7373
#[rustc_clean(cfg="cfail3")]
7474
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
7575
pub fn change_output(a: i32) -> i32 {
@@ -105,7 +105,7 @@ pub fn change_input(_a: i32, _b: i32) -> i32 {
105105
}
106106

107107
#[cfg(not(cfail1))]
108-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
108+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
109109
#[rustc_clean(cfg="cfail3")]
110110
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
111111
pub fn change_input(_a: i32, _b: i32) -> i32 {
@@ -140,7 +140,7 @@ pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
140140
}
141141

142142
#[cfg(not(cfail1))]
143-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
143+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
144144
#[rustc_clean(cfg="cfail3")]
145145
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
146146
pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
@@ -175,7 +175,7 @@ pub fn change_clobber(_a: i32) -> i32 {
175175
}
176176

177177
#[cfg(not(cfail1))]
178-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
178+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
179179
#[rustc_clean(cfg="cfail3")]
180180
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
181181
pub fn change_clobber(_a: i32) -> i32 {
@@ -210,7 +210,7 @@ pub fn change_options(_a: i32) -> i32 {
210210
}
211211

212212
#[cfg(not(cfail1))]
213-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
213+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
214214
#[rustc_clean(cfg="cfail3")]
215215
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
216216
pub fn change_options(_a: i32) -> i32 {

‎src/test/incremental/hashes/let_expressions.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn change_name() {
2222

2323
#[cfg(not(cfail1))]
2424
#[rustc_clean(cfg="cfail2",
25-
except="HirBody,MirValidated,MirOptimized")]
25+
except="HirBody,MirBuilt,MirOptimized")]
2626
#[rustc_clean(cfg="cfail3")]
2727
pub fn change_name() {
2828
let _y = 2u64;
@@ -38,7 +38,7 @@ pub fn add_type() {
3838

3939
#[cfg(not(cfail1))]
4040
#[rustc_clean(cfg="cfail2",
41-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
41+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
4242
#[rustc_clean(cfg="cfail3")]
4343
pub fn add_type() {
4444
let _x: u32 = 2u32;
@@ -54,7 +54,7 @@ pub fn change_type() {
5454

5555
#[cfg(not(cfail1))]
5656
#[rustc_clean(cfg="cfail2",
57-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
57+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
5858
#[rustc_clean(cfg="cfail3")]
5959
pub fn change_type() {
6060
let _x: u8 = 2;
@@ -70,7 +70,7 @@ pub fn change_mutability_of_reference_type() {
7070

7171
#[cfg(not(cfail1))]
7272
#[rustc_clean(cfg="cfail2",
73-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
73+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
7474
#[rustc_clean(cfg="cfail3")]
7575
pub fn change_mutability_of_reference_type() {
7676
let _x: &mut u64;
@@ -86,7 +86,7 @@ pub fn change_mutability_of_slot() {
8686

8787
#[cfg(not(cfail1))]
8888
#[rustc_clean(cfg="cfail2",
89-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
89+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
9090
#[rustc_clean(cfg="cfail3")]
9191
pub fn change_mutability_of_slot() {
9292
let _x: u64 = 0;
@@ -102,7 +102,7 @@ pub fn change_simple_binding_to_pattern() {
102102

103103
#[cfg(not(cfail1))]
104104
#[rustc_clean(cfg="cfail2",
105-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
105+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
106106
#[rustc_clean(cfg="cfail3")]
107107
pub fn change_simple_binding_to_pattern() {
108108
let (_a, _b) = (0u8, 'x');
@@ -118,7 +118,7 @@ pub fn change_name_in_pattern() {
118118

119119
#[cfg(not(cfail1))]
120120
#[rustc_clean(cfg="cfail2",
121-
except="HirBody,MirValidated,MirOptimized")]
121+
except="HirBody,MirBuilt,MirOptimized")]
122122
#[rustc_clean(cfg="cfail3")]
123123
pub fn change_name_in_pattern() {
124124
let (_a, _c) = (1u8, 'y');
@@ -134,7 +134,7 @@ pub fn add_ref_in_pattern() {
134134

135135
#[cfg(not(cfail1))]
136136
#[rustc_clean(cfg="cfail2",
137-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
137+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
138138
#[rustc_clean(cfg="cfail3")]
139139
pub fn add_ref_in_pattern() {
140140
let (ref _a, _b) = (1u8, 'y');
@@ -150,7 +150,7 @@ pub fn add_amp_in_pattern() {
150150

151151
#[cfg(not(cfail1))]
152152
#[rustc_clean(cfg="cfail2",
153-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
153+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
154154
#[rustc_clean(cfg="cfail3")]
155155
pub fn add_amp_in_pattern() {
156156
let (&_a, _b) = (&1u8, 'y');
@@ -166,7 +166,7 @@ pub fn change_mutability_of_binding_in_pattern() {
166166

167167
#[cfg(not(cfail1))]
168168
#[rustc_clean(cfg="cfail2",
169-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
169+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
170170
#[rustc_clean(cfg="cfail3")]
171171
pub fn change_mutability_of_binding_in_pattern() {
172172
let (mut _a, _b) = (99u8, 'q');
@@ -182,7 +182,7 @@ pub fn add_initializer() {
182182

183183
#[cfg(not(cfail1))]
184184
#[rustc_clean(cfg="cfail2",
185-
except="HirBody,TypeckTables,MirValidated,MirOptimized")]
185+
except="HirBody,TypeckTables,MirBuilt,MirOptimized")]
186186
#[rustc_clean(cfg="cfail3")]
187187
pub fn add_initializer() {
188188
let _x: i16 = 3i16;
@@ -198,7 +198,7 @@ pub fn change_initializer() {
198198

199199
#[cfg(not(cfail1))]
200200
#[rustc_clean(cfg="cfail2",
201-
except="HirBody,MirValidated,MirOptimized")]
201+
except="HirBody,MirBuilt,MirOptimized")]
202202
#[rustc_clean(cfg="cfail3")]
203203
pub fn change_initializer() {
204204
let _x = 5u16;

‎src/test/incremental/hashes/loop_expressions.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
2525
}
2626

2727
#[cfg(not(cfail1))]
28-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
28+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
2929
#[rustc_clean(cfg="cfail3")]
3030
pub fn change_loop_body() {
3131
let mut _x = 0;
@@ -47,7 +47,7 @@ pub fn add_break() {
4747
}
4848

4949
#[cfg(not(cfail1))]
50-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
50+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
5151
#[rustc_clean(cfg="cfail3")]
5252
pub fn add_break() {
5353
let mut _x = 0;
@@ -118,7 +118,7 @@ pub fn change_break_label() {
118118
}
119119

120120
#[cfg(not(cfail1))]
121-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
121+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
122122
#[rustc_clean(cfg="cfail3")]
123123
pub fn change_break_label() {
124124
let mut _x = 0;
@@ -168,7 +168,7 @@ pub fn change_continue_label() {
168168
}
169169

170170
#[cfg(not(cfail1))]
171-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, TypeckTables")]
171+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, TypeckTables")]
172172
#[rustc_clean(cfg="cfail3")]
173173
pub fn change_continue_label() {
174174
let mut _x = 0;
@@ -193,7 +193,7 @@ pub fn change_continue_to_break() {
193193
}
194194

195195
#[cfg(not(cfail1))]
196-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
196+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
197197
#[rustc_clean(cfg="cfail3")]
198198
pub fn change_continue_to_break() {
199199
let mut _x = 0;

‎src/test/incremental/hashes/match_expressions.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn add_arm(x: u32) -> u32 {
2626

2727
#[cfg(not(cfail1))]
2828
#[rustc_clean(cfg="cfail2",
29-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
29+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
3030
#[rustc_clean(cfg="cfail3")]
3131
pub fn add_arm(x: u32) -> u32 {
3232
match x {
@@ -51,7 +51,7 @@ pub fn change_order_of_arms(x: u32) -> u32 {
5151

5252
#[cfg(not(cfail1))]
5353
#[rustc_clean(cfg="cfail2",
54-
except="HirBody,MirValidated,MirOptimized")]
54+
except="HirBody,MirBuilt,MirOptimized")]
5555
#[rustc_clean(cfg="cfail3")]
5656
pub fn change_order_of_arms(x: u32) -> u32 {
5757
match x {
@@ -75,7 +75,7 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 {
7575

7676
#[cfg(not(cfail1))]
7777
#[rustc_clean(cfg="cfail2",
78-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
78+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
7979
#[rustc_clean(cfg="cfail3")]
8080
pub fn add_guard_clause(x: u32, y: bool) -> u32 {
8181
match x {
@@ -99,7 +99,7 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 {
9999

100100
#[cfg(not(cfail1))]
101101
#[rustc_clean(cfg="cfail2",
102-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
102+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
103103
#[rustc_clean(cfg="cfail3")]
104104
pub fn change_guard_clause(x: u32, y: bool) -> u32 {
105105
match x {
@@ -123,7 +123,7 @@ pub fn add_at_binding(x: u32) -> u32 {
123123

124124
#[cfg(not(cfail1))]
125125
#[rustc_clean(cfg="cfail2",
126-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
126+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
127127
#[rustc_clean(cfg="cfail3")]
128128
pub fn add_at_binding(x: u32) -> u32 {
129129
match x {
@@ -147,7 +147,7 @@ pub fn change_name_of_at_binding(x: u32) -> u32 {
147147

148148
#[cfg(not(cfail1))]
149149
#[rustc_clean(cfg="cfail2",
150-
except="HirBody,MirValidated,MirOptimized")]
150+
except="HirBody,MirBuilt,MirOptimized")]
151151
#[rustc_clean(cfg="cfail3")]
152152
pub fn change_name_of_at_binding(x: u32) -> u32 {
153153
match x {
@@ -170,7 +170,7 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 {
170170

171171
#[cfg(not(cfail1))]
172172
#[rustc_clean(cfg="cfail2",
173-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
173+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
174174
#[rustc_clean(cfg="cfail3")]
175175
pub fn change_simple_name_to_pattern(x: u32) -> u32 {
176176
match (x, x & 1) {
@@ -193,7 +193,7 @@ pub fn change_name_in_pattern(x: u32) -> u32 {
193193

194194
#[cfg(not(cfail1))]
195195
#[rustc_clean(cfg="cfail2",
196-
except="HirBody,MirValidated,MirOptimized")]
196+
except="HirBody,MirBuilt,MirOptimized")]
197197
#[rustc_clean(cfg="cfail3")]
198198
pub fn change_name_in_pattern(x: u32) -> u32 {
199199
match (x, x & 1) {
@@ -216,7 +216,7 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
216216

217217
#[cfg(not(cfail1))]
218218
#[rustc_clean(cfg="cfail2",
219-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
219+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
220220
#[rustc_clean(cfg="cfail3")]
221221
pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
222222
match (x, x & 1) {
@@ -238,7 +238,7 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
238238

239239
#[cfg(not(cfail1))]
240240
#[rustc_clean(cfg="cfail2",
241-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
241+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
242242
#[rustc_clean(cfg="cfail3")]
243243
pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
244244
match (x, x & 1) {
@@ -260,7 +260,7 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
260260

261261
#[cfg(not(cfail1))]
262262
#[rustc_clean(cfg="cfail2",
263-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
263+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
264264
#[rustc_clean(cfg="cfail3")]
265265
pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
266266
match (&x, x & 1) {
@@ -283,7 +283,7 @@ pub fn change_rhs_of_arm(x: u32) -> u32 {
283283

284284
#[cfg(not(cfail1))]
285285
#[rustc_clean(cfg="cfail2",
286-
except="HirBody,MirValidated,MirOptimized")]
286+
except="HirBody,MirBuilt,MirOptimized")]
287287
#[rustc_clean(cfg="cfail3")]
288288
pub fn change_rhs_of_arm(x: u32) -> u32 {
289289
match x {
@@ -307,7 +307,7 @@ pub fn add_alternative_to_arm(x: u32) -> u32 {
307307

308308
#[cfg(not(cfail1))]
309309
#[rustc_clean(cfg="cfail2",
310-
except="HirBody,MirValidated,MirOptimized,TypeckTables")]
310+
except="HirBody,MirBuilt,MirOptimized,TypeckTables")]
311311
#[rustc_clean(cfg="cfail3")]
312312
pub fn add_alternative_to_arm(x: u32) -> u32 {
313313
match x {

‎src/test/incremental/hashes/panic_exprs.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
// Indexing expression ---------------------------------------------------------
21-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
21+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
2222
#[rustc_clean(cfg="cfail3")]
2323
pub fn indexing(slice: &[u8]) -> u8 {
2424
#[cfg(cfail1)]
@@ -33,7 +33,7 @@ pub fn indexing(slice: &[u8]) -> u8 {
3333

3434

3535
// Arithmetic overflow plus ----------------------------------------------------
36-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
36+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
3737
#[rustc_clean(cfg="cfail3")]
3838
pub fn arithmetic_overflow_plus(val: i32) -> i32 {
3939
#[cfg(cfail1)]
@@ -48,7 +48,7 @@ pub fn arithmetic_overflow_plus(val: i32) -> i32 {
4848

4949

5050
// Arithmetic overflow minus ----------------------------------------------------
51-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
51+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
5252
#[rustc_clean(cfg="cfail3")]
5353
pub fn arithmetic_overflow_minus(val: i32) -> i32 {
5454
#[cfg(cfail1)]
@@ -63,7 +63,7 @@ pub fn arithmetic_overflow_minus(val: i32) -> i32 {
6363

6464

6565
// Arithmetic overflow mult ----------------------------------------------------
66-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
66+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
6767
#[rustc_clean(cfg="cfail3")]
6868
pub fn arithmetic_overflow_mult(val: i32) -> i32 {
6969
#[cfg(cfail1)]
@@ -78,7 +78,7 @@ pub fn arithmetic_overflow_mult(val: i32) -> i32 {
7878

7979

8080
// Arithmetic overflow negation ------------------------------------------------
81-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
81+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
8282
#[rustc_clean(cfg="cfail3")]
8383
pub fn arithmetic_overflow_negation(val: i32) -> i32 {
8484
#[cfg(cfail1)]
@@ -93,7 +93,7 @@ pub fn arithmetic_overflow_negation(val: i32) -> i32 {
9393

9494

9595
// Division by zero ------------------------------------------------------------
96-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
96+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
9797
#[rustc_clean(cfg="cfail3")]
9898
pub fn division_by_zero(val: i32) -> i32 {
9999
#[cfg(cfail1)]
@@ -107,7 +107,7 @@ pub fn division_by_zero(val: i32) -> i32 {
107107
}
108108

109109
// Division by zero ------------------------------------------------------------
110-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
110+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
111111
#[rustc_clean(cfg="cfail3")]
112112
pub fn mod_by_zero(val: i32) -> i32 {
113113
#[cfg(cfail1)]
@@ -122,7 +122,7 @@ pub fn mod_by_zero(val: i32) -> i32 {
122122

123123

124124
// shift left ------------------------------------------------------------------
125-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
125+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
126126
#[rustc_clean(cfg="cfail3")]
127127
pub fn shift_left(val: i32, shift: usize) -> i32 {
128128
#[cfg(cfail1)]
@@ -137,7 +137,7 @@ pub fn shift_left(val: i32, shift: usize) -> i32 {
137137

138138

139139
// shift right ------------------------------------------------------------------
140-
#[rustc_clean(cfg="cfail2", except="HirBody,MirValidated,MirOptimized")]
140+
#[rustc_clean(cfg="cfail2", except="HirBody,MirBuilt,MirOptimized")]
141141
#[rustc_clean(cfg="cfail3")]
142142
pub fn shift_right(val: i32, shift: usize) -> i32 {
143143
#[cfg(cfail1)]

‎src/test/incremental/hashes/struct_constructors.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn change_field_value_regular_struct() -> RegularStruct {
3131
}
3232

3333
#[cfg(not(cfail1))]
34-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
34+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
3535
#[rustc_clean(cfg="cfail3")]
3636
pub fn change_field_value_regular_struct() -> RegularStruct {
3737
RegularStruct {
@@ -82,7 +82,7 @@ pub fn add_field_regular_struct() -> RegularStruct {
8282
}
8383

8484
#[cfg(not(cfail1))]
85-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
85+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
8686
#[rustc_clean(cfg="cfail3")]
8787
pub fn add_field_regular_struct() -> RegularStruct {
8888
let struct1 = RegularStruct {
@@ -117,7 +117,7 @@ pub fn change_field_label_regular_struct() -> RegularStruct {
117117
}
118118

119119
#[cfg(not(cfail1))]
120-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
120+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
121121
#[rustc_clean(cfg="cfail3")]
122122
pub fn change_field_label_regular_struct() -> RegularStruct {
123123
let struct1 = RegularStruct {
@@ -152,7 +152,7 @@ pub fn change_constructor_path_regular_struct() {
152152
}
153153

154154
#[cfg(not(cfail1))]
155-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
155+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
156156
#[rustc_clean(cfg="cfail3")]
157157
pub fn change_constructor_path_regular_struct() {
158158
let _ = RegularStruct2 {
@@ -173,7 +173,7 @@ pub mod change_constructor_path_indirectly_regular_struct {
173173

174174
#[rustc_clean(
175175
cfg="cfail2",
176-
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,TypeckTables"
176+
except="FnSignature,Hir,HirBody,MirOptimized,MirBuilt,TypeckTables"
177177
)]
178178
#[rustc_clean(cfg="cfail3")]
179179
pub fn function() -> Struct {
@@ -196,7 +196,7 @@ pub fn change_field_value_tuple_struct() -> TupleStruct {
196196
}
197197

198198
#[cfg(not(cfail1))]
199-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated")]
199+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt")]
200200
#[rustc_clean(cfg="cfail3")]
201201
pub fn change_field_value_tuple_struct() -> TupleStruct {
202202
TupleStruct(0, 1, 3)
@@ -213,7 +213,7 @@ pub fn change_constructor_path_tuple_struct() {
213213
}
214214

215215
#[cfg(not(cfail1))]
216-
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirValidated,TypeckTables")]
216+
#[rustc_clean(cfg="cfail2", except="HirBody,MirOptimized,MirBuilt,TypeckTables")]
217217
#[rustc_clean(cfg="cfail3")]
218218
pub fn change_constructor_path_tuple_struct() {
219219
let _ = TupleStruct2(0, 1, 2);
@@ -230,7 +230,7 @@ pub mod change_constructor_path_indirectly_tuple_struct {
230230

231231
#[rustc_clean(
232232
cfg="cfail2",
233-
except="FnSignature,Hir,HirBody,MirOptimized,MirValidated,TypeckTables"
233+
except="FnSignature,Hir,HirBody,MirOptimized,MirBuilt,TypeckTables"
234234
)]
235235
#[rustc_clean(cfg="cfail3")]
236236
pub fn function() -> Struct {

‎src/test/incremental/hashes/unary_and_binary_exprs.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn const_negation() -> i32 {
2121
}
2222

2323
#[cfg(not(cfail1))]
24-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
24+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
2525
#[rustc_clean(cfg="cfail3")]
2626
pub fn const_negation() -> i32 {
2727
-1
@@ -36,7 +36,7 @@ pub fn const_bitwise_not() -> i32 {
3636
}
3737

3838
#[cfg(not(cfail1))]
39-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
39+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
4040
#[rustc_clean(cfg="cfail3")]
4141
pub fn const_bitwise_not() -> i32 {
4242
!99
@@ -51,7 +51,7 @@ pub fn var_negation(x: i32, y: i32) -> i32 {
5151
}
5252

5353
#[cfg(not(cfail1))]
54-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
54+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
5555
#[rustc_clean(cfg="cfail3")]
5656
pub fn var_negation(x: i32, y: i32) -> i32 {
5757
-y
@@ -66,7 +66,7 @@ pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
6666
}
6767

6868
#[cfg(not(cfail1))]
69-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
69+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
7070
#[rustc_clean(cfg="cfail3")]
7171
pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
7272
!y
@@ -81,7 +81,7 @@ pub fn var_deref(x: &i32, y: &i32) -> i32 {
8181
}
8282

8383
#[cfg(not(cfail1))]
84-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated,TypeckTables", cfg="cfail2")]
84+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt,TypeckTables", cfg="cfail2")]
8585
#[rustc_clean(cfg="cfail3")]
8686
pub fn var_deref(x: &i32, y: &i32) -> i32 {
8787
*y
@@ -96,7 +96,7 @@ pub fn first_const_add() -> i32 {
9696
}
9797

9898
#[cfg(not(cfail1))]
99-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
99+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
100100
#[rustc_clean(cfg="cfail3")]
101101
pub fn first_const_add() -> i32 {
102102
2 + 3
@@ -111,7 +111,7 @@ pub fn second_const_add() -> i32 {
111111
}
112112

113113
#[cfg(not(cfail1))]
114-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
114+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
115115
#[rustc_clean(cfg="cfail3")]
116116
pub fn second_const_add() -> i32 {
117117
1 + 3
@@ -126,7 +126,7 @@ pub fn first_var_add(a: i32, b: i32) -> i32 {
126126
}
127127

128128
#[cfg(not(cfail1))]
129-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
129+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
130130
#[rustc_clean(cfg="cfail3")]
131131
pub fn first_var_add(a: i32, b: i32) -> i32 {
132132
b + 2
@@ -141,7 +141,7 @@ pub fn second_var_add(a: i32, b: i32) -> i32 {
141141
}
142142

143143
#[cfg(not(cfail1))]
144-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
144+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
145145
#[rustc_clean(cfg="cfail3")]
146146
pub fn second_var_add(a: i32, b: i32) -> i32 {
147147
1 + b
@@ -156,7 +156,7 @@ pub fn plus_to_minus(a: i32) -> i32 {
156156
}
157157

158158
#[cfg(not(cfail1))]
159-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
159+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
160160
#[rustc_clean(cfg="cfail3")]
161161
pub fn plus_to_minus(a: i32) -> i32 {
162162
1 - a
@@ -171,7 +171,7 @@ pub fn plus_to_mult(a: i32) -> i32 {
171171
}
172172

173173
#[cfg(not(cfail1))]
174-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
174+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
175175
#[rustc_clean(cfg="cfail3")]
176176
pub fn plus_to_mult(a: i32) -> i32 {
177177
1 * a
@@ -186,7 +186,7 @@ pub fn plus_to_div(a: i32) -> i32 {
186186
}
187187

188188
#[cfg(not(cfail1))]
189-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
189+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
190190
#[rustc_clean(cfg="cfail3")]
191191
pub fn plus_to_div(a: i32) -> i32 {
192192
1 / a
@@ -201,7 +201,7 @@ pub fn plus_to_mod(a: i32) -> i32 {
201201
}
202202

203203
#[cfg(not(cfail1))]
204-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
204+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
205205
#[rustc_clean(cfg="cfail3")]
206206
pub fn plus_to_mod(a: i32) -> i32 {
207207
1 % a
@@ -216,7 +216,7 @@ pub fn and_to_or(a: bool, b: bool) -> bool {
216216
}
217217

218218
#[cfg(not(cfail1))]
219-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
219+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
220220
#[rustc_clean(cfg="cfail3")]
221221
pub fn and_to_or(a: bool, b: bool) -> bool {
222222
a || b
@@ -231,7 +231,7 @@ pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
231231
}
232232

233233
#[cfg(not(cfail1))]
234-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
234+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
235235
#[rustc_clean(cfg="cfail3")]
236236
pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
237237
1 | a
@@ -246,7 +246,7 @@ pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
246246
}
247247

248248
#[cfg(not(cfail1))]
249-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
249+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
250250
#[rustc_clean(cfg="cfail3")]
251251
pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
252252
1 ^ a
@@ -261,7 +261,7 @@ pub fn bitwise_and_to_lshift(a: i32) -> i32 {
261261
}
262262

263263
#[cfg(not(cfail1))]
264-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
264+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
265265
#[rustc_clean(cfg="cfail3")]
266266
pub fn bitwise_and_to_lshift(a: i32) -> i32 {
267267
a << 1
@@ -276,7 +276,7 @@ pub fn bitwise_and_to_rshift(a: i32) -> i32 {
276276
}
277277

278278
#[cfg(not(cfail1))]
279-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
279+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
280280
#[rustc_clean(cfg="cfail3")]
281281
pub fn bitwise_and_to_rshift(a: i32) -> i32 {
282282
a >> 1
@@ -291,7 +291,7 @@ pub fn eq_to_uneq(a: i32) -> bool {
291291
}
292292

293293
#[cfg(not(cfail1))]
294-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
294+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
295295
#[rustc_clean(cfg="cfail3")]
296296
pub fn eq_to_uneq(a: i32) -> bool {
297297
a != 1
@@ -306,7 +306,7 @@ pub fn eq_to_lt(a: i32) -> bool {
306306
}
307307

308308
#[cfg(not(cfail1))]
309-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
309+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
310310
#[rustc_clean(cfg="cfail3")]
311311
pub fn eq_to_lt(a: i32) -> bool {
312312
a < 1
@@ -321,7 +321,7 @@ pub fn eq_to_gt(a: i32) -> bool {
321321
}
322322

323323
#[cfg(not(cfail1))]
324-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
324+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
325325
#[rustc_clean(cfg="cfail3")]
326326
pub fn eq_to_gt(a: i32) -> bool {
327327
a > 1
@@ -336,7 +336,7 @@ pub fn eq_to_le(a: i32) -> bool {
336336
}
337337

338338
#[cfg(not(cfail1))]
339-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
339+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
340340
#[rustc_clean(cfg="cfail3")]
341341
pub fn eq_to_le(a: i32) -> bool {
342342
a <= 1
@@ -351,7 +351,7 @@ pub fn eq_to_ge(a: i32) -> bool {
351351
}
352352

353353
#[cfg(not(cfail1))]
354-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
354+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
355355
#[rustc_clean(cfg="cfail3")]
356356
pub fn eq_to_ge(a: i32) -> bool {
357357
a >= 1
@@ -368,7 +368,7 @@ pub fn type_cast(a: u8) -> u64 {
368368
}
369369

370370
#[cfg(not(cfail1))]
371-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated,TypeckTables", cfg="cfail2")]
371+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt,TypeckTables", cfg="cfail2")]
372372
#[rustc_clean(cfg="cfail3")]
373373
pub fn type_cast(a: u8) -> u64 {
374374
let b = a as u32;
@@ -385,7 +385,7 @@ pub fn value_cast(a: u32) -> i32 {
385385
}
386386

387387
#[cfg(not(cfail1))]
388-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
388+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
389389
#[rustc_clean(cfg="cfail3")]
390390
pub fn value_cast(a: u32) -> i32 {
391391
2 as i32
@@ -403,7 +403,7 @@ pub fn place() -> i32 {
403403
}
404404

405405
#[cfg(not(cfail1))]
406-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
406+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
407407
#[rustc_clean(cfg="cfail3")]
408408
pub fn place() -> i32 {
409409
let mut x = 10;
@@ -423,7 +423,7 @@ pub fn rvalue() -> i32 {
423423
}
424424

425425
#[cfg(not(cfail1))]
426-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
426+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
427427
#[rustc_clean(cfg="cfail3")]
428428
pub fn rvalue() -> i32 {
429429
let mut x = 10;
@@ -440,7 +440,7 @@ pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
440440
}
441441

442442
#[cfg(not(cfail1))]
443-
#[rustc_clean(except="HirBody,MirOptimized,MirValidated", cfg="cfail2")]
443+
#[rustc_clean(except="HirBody,MirOptimized,MirBuilt", cfg="cfail2")]
444444
#[rustc_clean(cfg="cfail3")]
445445
pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
446446
s[j]

‎src/test/incremental/hashes/while_let_loops.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
2525
}
2626

2727
#[cfg(not(cfail1))]
28-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
28+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
2929
#[rustc_clean(cfg="cfail3")]
3030
pub fn change_loop_body() {
3131
let mut _x = 0;
@@ -48,7 +48,7 @@ pub fn change_loop_condition() {
4848
}
4949

5050
#[cfg(not(cfail1))]
51-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
51+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
5252
#[rustc_clean(cfg="cfail3")]
5353
pub fn change_loop_condition() {
5454
let mut _x = 0;
@@ -70,7 +70,7 @@ pub fn add_break() {
7070
}
7171

7272
#[cfg(not(cfail1))]
73-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
73+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
7474
#[rustc_clean(cfg="cfail3")]
7575
pub fn add_break() {
7676
let mut _x = 0;
@@ -141,7 +141,7 @@ pub fn change_break_label() {
141141
}
142142

143143
#[cfg(not(cfail1))]
144-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
144+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
145145
#[rustc_clean(cfg="cfail3")]
146146
pub fn change_break_label() {
147147
let mut _x = 0;
@@ -191,7 +191,7 @@ pub fn change_continue_label() {
191191
}
192192

193193
#[cfg(not(cfail1))]
194-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
194+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
195195
#[rustc_clean(cfg="cfail3")]
196196
pub fn change_continue_label() {
197197
let mut _x = 0;
@@ -216,7 +216,7 @@ pub fn change_continue_to_break() {
216216
}
217217

218218
#[cfg(not(cfail1))]
219-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
219+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
220220
#[rustc_clean(cfg="cfail3")]
221221
pub fn change_continue_to_break() {
222222
let mut _x = 0;

‎src/test/incremental/hashes/while_loops.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
2525
}
2626

2727
#[cfg(not(cfail1))]
28-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
28+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
2929
#[rustc_clean(cfg="cfail3")]
3030
pub fn change_loop_body() {
3131
let mut _x = 0;
@@ -48,7 +48,7 @@ pub fn change_loop_condition() {
4848
}
4949

5050
#[cfg(not(cfail1))]
51-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
51+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
5252
#[rustc_clean(cfg="cfail3")]
5353
pub fn change_loop_condition() {
5454
let mut _x = 0;
@@ -70,7 +70,7 @@ pub fn add_break() {
7070
}
7171

7272
#[cfg(not(cfail1))]
73-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized, TypeckTables")]
73+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized, TypeckTables")]
7474
#[rustc_clean(cfg="cfail3")]
7575
pub fn add_break() {
7676
let mut _x = 0;
@@ -141,7 +141,7 @@ pub fn change_break_label() {
141141
}
142142

143143
#[cfg(not(cfail1))]
144-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
144+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
145145
#[rustc_clean(cfg="cfail3")]
146146
pub fn change_break_label() {
147147
let mut _x = 0;
@@ -191,7 +191,7 @@ pub fn change_continue_label() {
191191
}
192192

193193
#[cfg(not(cfail1))]
194-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated")]
194+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt")]
195195
#[rustc_clean(cfg="cfail3")]
196196
pub fn change_continue_label() {
197197
let mut _x = 0;
@@ -216,7 +216,7 @@ pub fn change_continue_to_break() {
216216
}
217217

218218
#[cfg(not(cfail1))]
219-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, MirOptimized")]
219+
#[rustc_clean(cfg="cfail2", except="HirBody, MirBuilt, MirOptimized")]
220220
#[rustc_clean(cfg="cfail3")]
221221
pub fn change_continue_to_break() {
222222
let mut _x = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.