]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs
Auto merge of #99725 - lcnr:dedup-region_bound_pairs, r=compiler-errors
[rust.git] / compiler / rustc_mir_transform / src / remove_noop_landing_pads.rs
index f925d13b2fb91223d334e6066993080f7f526808..89808d3d4cdbd9c9056c358806eb64daf951f34c 100644 (file)
@@ -15,7 +15,7 @@ fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
         sess.panic_strategy() != PanicStrategy::Abort
     }
 
-    fn run_pass(&self, _: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
+    fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
         debug!("remove_noop_landing_pads({:?})", body);
         self.remove_nop_landing_pads(body)
     }
@@ -81,6 +81,8 @@ fn is_nop_landing_pad(
     }
 
     fn remove_nop_landing_pads(&self, body: &mut Body<'_>) {
+        debug!("body: {:#?}", body);
+
         // make sure there's a single resume block
         let resume_block = {
             let patch = MirPatch::new(body);