diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-02-16 00:27:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-16 00:27:35 +0100 |
| commit | e84a1dd87f1ee6491eafbc2342ea9daede420229 (patch) | |
| tree | 6b9f0a8eee3c979472f5e15931dc3361b6e9a5eb /compiler/rustc_mir_transform/src | |
| parent | 77eaa80d5c662710f223c657a49dc5f2d80a0e41 (diff) | |
| parent | 5d65b1954ef4dc6ea3a1260e1bce31524fc286f4 (diff) | |
| download | rust-e84a1dd87f1ee6491eafbc2342ea9daede420229.tar.gz rust-e84a1dd87f1ee6491eafbc2342ea9daede420229.zip | |
Rollup merge of #121147 - tmiasko:no-debug-body, r=compiler-errors
Avoid debug logging entire MIR body If there is a need to examine the MIR body there is -Zmir-dump.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index b4fa7f3bea6..fb174192b84 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -653,7 +653,6 @@ fn inner_optimized_mir(tcx: TyCtxt<'_>, did: LocalDefId) -> Body<'_> { debug!("about to call mir_drops_elaborated..."); let body = tcx.mir_drops_elaborated_and_const_checked(did).steal(); let mut body = remap_mir_for_const_eval_select(tcx, body, hir::Constness::NotConst); - debug!("body: {:#?}", body); if body.tainted_by_errors.is_some() { return body; diff --git a/compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs b/compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs index 095119e2e3f..fb52bfa468a 100644 --- a/compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs +++ b/compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs @@ -15,7 +15,8 @@ impl<'tcx> MirPass<'tcx> for RemoveNoopLandingPads { } fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { - debug!("remove_noop_landing_pads({:?})", body); + let def_id = body.source.def_id(); + debug!(?def_id); self.remove_nop_landing_pads(body) } } @@ -81,8 +82,6 @@ impl RemoveNoopLandingPads { } fn remove_nop_landing_pads(&self, body: &mut Body<'_>) { - debug!("body: {:#?}", body); - // Skip the pass if there are no blocks with a resume terminator. let has_resume = body .basic_blocks |
