We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e3ce43 commit 0475c36Copy full SHA for 0475c36
compiler/rustc_mir/src/borrow_check/mod.rs
@@ -205,6 +205,7 @@ fn do_mir_borrowck<'a, 'tcx>(
205
206
let mut flow_inits = MaybeInitializedPlaces::new(tcx, &body, &mdpe)
207
.into_engine(tcx, &body, def.did.to_def_id())
208
+ .pass_name("borrowck")
209
.iterate_to_fixpoint()
210
.into_results_cursor(&body);
211
@@ -264,12 +265,15 @@ fn do_mir_borrowck<'a, 'tcx>(
264
265
266
let flow_borrows = Borrows::new(tcx, &body, regioncx.clone(), &borrow_set)
267
268
269
.iterate_to_fixpoint();
270
let flow_uninits = MaybeUninitializedPlaces::new(tcx, &body, &mdpe)
271
272
273
274
let flow_ever_inits = EverInitializedPlaces::new(tcx, &body, &mdpe)
275
276
277
278
279
let movable_generator = match tcx.hir().get(id) {
compiler/rustc_mir/src/transform/check_consts/validation.rs
@@ -57,6 +57,7 @@ impl Qualifs<'mir, 'tcx> {
57
MaybeMutBorrowedLocals::mut_borrows_only(tcx, &body, param_env)
58
.unsound_ignore_borrow_on_drop()
59
.into_engine(tcx, &body, def_id.to_def_id())
60
+ .pass_name("const_qualification")
61
62
.into_results_cursor(&body)
63
});
compiler/rustc_mir/src/transform/elaborate_drops.rs
@@ -44,13 +44,15 @@ impl<'tcx> MirPass<'tcx> for ElaborateDrops {
44
let inits = MaybeInitializedPlaces::new(tcx, body, &env)
45
.into_engine(tcx, body, def_id)
46
.dead_unwinds(&dead_unwinds)
47
+ .pass_name("elaborate_drops")
48
49
.into_results_cursor(body);
50
51
let uninits = MaybeUninitializedPlaces::new(tcx, body, &env)
52
.mark_inactive_variants_as_uninit()
53
54
55
56
@@ -83,6 +85,7 @@ fn find_dead_unwinds<'tcx>(
83
85
let mut dead_unwinds = BitSet::new_empty(body.basic_blocks().len());
84
86
let mut flow_inits = MaybeInitializedPlaces::new(tcx, body, &env)
87
88
+ .pass_name("find_dead_unwinds")
89
90
91
for (bb, bb_data) in body.basic_blocks().iter_enumerated() {
compiler/rustc_mir/src/transform/generator.rs
@@ -467,8 +467,10 @@ fn locals_live_across_suspend_points(
467
468
// Calculate the MIR locals which have been previously
469
// borrowed (even if they are still active).
470
- let borrowed_locals_results =
471
- MaybeBorrowedLocals::all_borrows().into_engine(tcx, body_ref, def_id).iterate_to_fixpoint();
+ let borrowed_locals_results = MaybeBorrowedLocals::all_borrows()
+ .into_engine(tcx, body_ref, def_id)
472
+ .pass_name("generator")
473
+ .iterate_to_fixpoint();
474
475
let mut borrowed_locals_cursor =
476
dataflow::ResultsCursor::new(body_ref, &borrowed_locals_results);
@@ -484,6 +486,7 @@ fn locals_live_across_suspend_points(
484
486
// Calculate the liveness of MIR locals ignoring borrows.
485
487
let mut liveness = MaybeLiveLocals
488
.into_engine(tcx, body_ref, def_id)
489
490
491
.into_results_cursor(body_ref);
492
src/tools/clippy/clippy_lints/src/redundant_clone.rs
@@ -87,6 +87,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
let maybe_storage_live_result = MaybeStorageLive
.into_engine(cx.tcx, mir, def_id.to_def_id())
+ .pass_name("redundant_clone")
92
.into_results_cursor(mir);
93
let mut possible_borrower = {
0 commit comments