]> git.proxmox.com Git - rustc.git/blobdiff - src/test/mir-opt/no-spurious-drop-after-call.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / mir-opt / no-spurious-drop-after-call.rs
index 782bc31186ca5fb8eb8a4931bc077d8579e4d351..ab58654e07c0520d3a20787bdef8e8f9ef5396e9 100644 (file)
@@ -4,21 +4,7 @@
 // MIR drop of the argument. (We used to have a `DROP(_2)` in the code
 // below, as part of bb3.)
 
+// EMIT_MIR rustc.main.ElaborateDrops.before.mir
 fn main() {
     std::mem::drop("".to_string());
 }
-
-// END RUST SOURCE
-// START rustc.main.ElaborateDrops.before.mir
-//    bb2: {
-//        StorageDead(_3);
-//        _1 = const std::mem::drop::<std::string::String>(move _2) -> [return: bb3, unwind: bb4];
-//    }
-//    bb3: {
-//        StorageDead(_2);
-//        StorageDead(_4);
-//        StorageDead(_1);
-//        _0 = ();
-//        return;
-//    }
-// END rustc.main.ElaborateDrops.before.mir