]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir_transform/src/remove_noop_landing_pads.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / compiler / rustc_mir_transform / src / remove_noop_landing_pads.rs
index 89808d3d4cdbd9c9056c358806eb64daf951f34c..5c441c5b194923e7f4ed8427378c054111fd7b50 100644 (file)
@@ -83,9 +83,9 @@ impl RemoveNoopLandingPads {
     fn remove_nop_landing_pads(&self, body: &mut Body<'_>) {
         debug!("body: {:#?}", body);
 
-        // make sure there's a single resume block
+        // make sure there's a resume block
         let resume_block = {
-            let patch = MirPatch::new(body);
+            let mut patch = MirPatch::new(body);
             let resume_block = patch.resume_block();
             patch.apply(body);
             resume_block