|
7 | 7 | let _2: (); // in scope 0 at $DIR/ref_with_sb.rs:+2:5: +2:15
|
8 | 8 | let mut _3: &i32; // in scope 0 at $DIR/ref_with_sb.rs:+2:12: +2:14
|
9 | 9 | let _4: &i32; // in scope 0 at $DIR/ref_with_sb.rs:+2:12: +2:14
|
| 10 | + let _5: (); // in scope 0 at $DIR/ref_with_sb.rs:+4:5: +4:20 |
10 | 11 | scope 1 {
|
11 | 12 | debug a => _1; // in scope 1 at $DIR/ref_with_sb.rs:+1:9: +1:14
|
12 |
| - let _5: i32; // in scope 1 at $DIR/ref_with_sb.rs:+6:9: +6:10 |
| 13 | + let _6: i32; // in scope 1 at $DIR/ref_with_sb.rs:+7:9: +7:10 |
13 | 14 | scope 2 {
|
14 |
| - debug b => _5; // in scope 2 at $DIR/ref_with_sb.rs:+6:9: +6:10 |
| 15 | + debug b => _6; // in scope 2 at $DIR/ref_with_sb.rs:+7:9: +7:10 |
15 | 16 | }
|
16 | 17 | }
|
17 | 18 |
|
|
25 | 26 | _3 = &(*_4); // scope 1 at $DIR/ref_with_sb.rs:+2:12: +2:14
|
26 | 27 | _2 = escape::<i32>(move _3) -> bb1; // scope 1 at $DIR/ref_with_sb.rs:+2:5: +2:15
|
27 | 28 | // mir::Constant
|
28 |
| - // + span: $DIR/ref_with_sb.rs:10:5: 10:11 |
| 29 | + // + span: $DIR/ref_with_sb.rs:13:5: 13:11 |
29 | 30 | // + literal: Const { ty: for<'a> fn(&'a i32) {escape::<i32>}, val: Value(<ZST>) }
|
30 | 31 | }
|
31 | 32 |
|
|
34 | 35 | StorageDead(_4); // scope 1 at $DIR/ref_with_sb.rs:+2:15: +2:16
|
35 | 36 | StorageDead(_2); // scope 1 at $DIR/ref_with_sb.rs:+2:15: +2:16
|
36 | 37 | _1 = const 1_i32; // scope 1 at $DIR/ref_with_sb.rs:+3:5: +3:10
|
37 |
| - StorageLive(_5); // scope 1 at $DIR/ref_with_sb.rs:+6:9: +6:10 |
38 |
| -- _5 = _1; // scope 1 at $DIR/ref_with_sb.rs:+6:13: +6:14 |
39 |
| -+ _5 = const 1_i32; // scope 1 at $DIR/ref_with_sb.rs:+6:13: +6:14 |
40 |
| - _0 = const (); // scope 0 at $DIR/ref_with_sb.rs:+0:11: +7:2 |
41 |
| - StorageDead(_5); // scope 1 at $DIR/ref_with_sb.rs:+7:1: +7:2 |
42 |
| - StorageDead(_1); // scope 0 at $DIR/ref_with_sb.rs:+7:1: +7:2 |
43 |
| - return; // scope 0 at $DIR/ref_with_sb.rs:+7:2: +7:2 |
| 38 | + StorageLive(_5); // scope 1 at $DIR/ref_with_sb.rs:+4:5: +4:20 |
| 39 | + _5 = some_function() -> bb2; // scope 1 at $DIR/ref_with_sb.rs:+4:5: +4:20 |
| 40 | + // mir::Constant |
| 41 | + // + span: $DIR/ref_with_sb.rs:15:5: 15:18 |
| 42 | + // + literal: Const { ty: fn() {some_function}, val: Value(<ZST>) } |
| 43 | + } |
| 44 | + |
| 45 | + bb2: { |
| 46 | + StorageDead(_5); // scope 1 at $DIR/ref_with_sb.rs:+4:20: +4:21 |
| 47 | + StorageLive(_6); // scope 1 at $DIR/ref_with_sb.rs:+7:9: +7:10 |
| 48 | +- _6 = _1; // scope 1 at $DIR/ref_with_sb.rs:+7:13: +7:14 |
| 49 | ++ _6 = const 1_i32; // scope 1 at $DIR/ref_with_sb.rs:+7:13: +7:14 |
| 50 | + _0 = const (); // scope 0 at $DIR/ref_with_sb.rs:+0:11: +8:2 |
| 51 | + StorageDead(_6); // scope 1 at $DIR/ref_with_sb.rs:+8:1: +8:2 |
| 52 | + StorageDead(_1); // scope 0 at $DIR/ref_with_sb.rs:+8:1: +8:2 |
| 53 | + return; // scope 0 at $DIR/ref_with_sb.rs:+8:2: +8:2 |
44 | 54 | }
|
45 | 55 | }
|
46 | 56 |
|
0 commit comments