]> git.lizzy.rs Git - rust.git/blobdiff - src/test/mir-opt/inline/inline_closure_borrows_arg.foo.Inline.after.mir
rustc_mir: don't throw away inlined locals' spans.
[rust.git] / src / test / mir-opt / inline / inline_closure_borrows_arg.foo.Inline.after.mir
index 2f2db51ec86275cd40d2c4755918eb52c4966769..92399ebaf9d1dd0f6729421994268d11559232cb 100644 (file)
@@ -13,15 +13,15 @@ fn foo(_1: T, _2: &i32) -> i32 {
     let mut _10: &i32;                   // in scope 0 at $DIR/inline-closure-borrows-arg.rs:16:5: 16:12
     scope 1 {
         debug x => _3;                   // in scope 1 at $DIR/inline-closure-borrows-arg.rs:12:9: 12:10
-        scope 2 {
+        scope 2 (inlined foo::<T>::{closure#0}) { // at $DIR/inline-closure-borrows-arg.rs:16:5: 16:12
             debug r => _9;               // in scope 2 at $DIR/inline-closure-borrows-arg.rs:12:14: 12:15
             debug _s => _10;             // in scope 2 at $DIR/inline-closure-borrows-arg.rs:12:23: 12:25
-            let _8: &i32;                // in scope 2 at $DIR/inline-closure-borrows-arg.rs:16:5: 16:12
+            let _8: &i32;                // in scope 2 at $DIR/inline-closure-borrows-arg.rs:13:13: 13:21
+            scope 3 {
+                debug variable => _8;    // in scope 3 at $DIR/inline-closure-borrows-arg.rs:13:13: 13:21
+            }
         }
     }
-    scope 3 {
-        debug variable => _8;            // in scope 3 at $DIR/inline-closure-borrows-arg.rs:13:13: 13:21
-    }
 
     bb0: {
         StorageLive(_3);                 // scope 0 at $DIR/inline-closure-borrows-arg.rs:12:9: 12:10