|
1 | 1 | // WARNING: This output format is intended for human consumers only
|
2 | 2 | // and is subject to change without notice. Knock yourself out.
|
3 | 3 | fn main() -> () {
|
4 |
| - let mut _0: (); // return place in scope 0 at $DIR/mir.rs:3:11: 3:11 |
5 |
| - let _1: std::option::Option<std::string::String>; // in scope 0 at $DIR/mir.rs:4:9: 4:10 |
6 |
| - let mut _2: std::string::String; // in scope 0 at $DIR/mir.rs:4:18: 4:31 |
7 |
| - let mut _4: &std::string::String; // in scope 0 at $DIR/mir.rs:7:14: 7:17 |
8 |
| - let mut _5: &str; // in scope 0 at $DIR/mir.rs:7:14: 7:17 |
9 |
| - let mut _6: bool; // in scope 0 at $DIR/mir.rs:7:14: 7:17 |
10 |
| - let mut _7: isize; // in scope 0 at $DIR/mir.rs:7:9: 7:18 |
11 |
| - let mut _9: bool; // in scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 4 | + let mut _0: (); // return place in scope 0 at $DIR/mir.rs:5:11: 5:11 |
| 5 | + let _1: std::option::Option<std::string::String>; // in scope 0 at $DIR/mir.rs:6:9: 6:10 |
| 6 | + let mut _2: std::string::String; // in scope 0 at $DIR/mir.rs:6:18: 6:31 |
| 7 | + let mut _4: &std::string::String; // in scope 0 at $DIR/mir.rs:9:14: 9:17 |
| 8 | + let mut _5: &str; // in scope 0 at $DIR/mir.rs:9:14: 9:17 |
| 9 | + let mut _6: bool; // in scope 0 at $DIR/mir.rs:9:14: 9:17 |
| 10 | + let mut _7: isize; // in scope 0 at $DIR/mir.rs:9:9: 9:18 |
| 11 | + let mut _9: bool; // in scope 0 at $DIR/mir.rs:12:1: 12:2 |
12 | 12 | scope 1 {
|
13 |
| - debug s => _1; // in scope 1 at $DIR/mir.rs:4:9: 4:10 |
14 |
| - let _3: i32; // in scope 1 at $DIR/mir.rs:5:9: 5:10 |
| 13 | + debug s => _1; // in scope 1 at $DIR/mir.rs:6:9: 6:10 |
| 14 | + let _3: i32; // in scope 1 at $DIR/mir.rs:7:9: 7:10 |
15 | 15 | scope 2 {
|
16 |
| - debug a => _3; // in scope 2 at $DIR/mir.rs:5:9: 5:10 |
17 |
| - let _8: std::option::Option<std::string::String>; // in scope 2 at $DIR/mir.rs:8:9: 8:10 |
| 16 | + debug a => _3; // in scope 2 at $DIR/mir.rs:7:9: 7:10 |
| 17 | + let _8: std::option::Option<std::string::String>; // in scope 2 at $DIR/mir.rs:10:9: 10:10 |
18 | 18 | scope 3 {
|
19 |
| - debug s => _8; // in scope 3 at $DIR/mir.rs:8:9: 8:10 |
| 19 | + debug s => _8; // in scope 3 at $DIR/mir.rs:10:9: 10:10 |
20 | 20 | }
|
21 | 21 | }
|
22 | 22 | }
|
23 | 23 |
|
24 | 24 | bb0: {
|
25 |
| - _9 = const false; // scope 0 at $DIR/mir.rs:4:9: 4:10 |
26 |
| - _2 = String::new() -> bb1; // scope 0 at $DIR/mir.rs:4:18: 4:31 |
| 25 | + _9 = const false; // scope 0 at $DIR/mir.rs:6:9: 6:10 |
| 26 | + _2 = String::new() -> bb1; // scope 0 at $DIR/mir.rs:6:18: 6:31 |
27 | 27 | // mir::Constant
|
28 |
| - // + span: $DIR/mir.rs:4:18: 4:29 |
| 28 | + // + span: $DIR/mir.rs:6:18: 6:29 |
29 | 29 | // + literal: Const { ty: fn() -> String {String::new}, val: Value(Scalar(<ZST>)) }
|
30 | 30 | }
|
31 | 31 |
|
32 | 32 | bb1: {
|
33 |
| - _9 = const true; // scope 0 at $DIR/mir.rs:4:13: 4:32 |
34 |
| - Deinit(_1); // scope 0 at $DIR/mir.rs:4:13: 4:32 |
35 |
| - ((_1 as Some).0: std::string::String) = move _2; // scope 0 at $DIR/mir.rs:4:13: 4:32 |
36 |
| - discriminant(_1) = 1; // scope 0 at $DIR/mir.rs:4:13: 4:32 |
37 |
| - _7 = discriminant(_1); // scope 2 at $DIR/mir.rs:6:11: 6:12 |
38 |
| - switchInt(move _7) -> [1_isize: bb3, otherwise: bb2]; // scope 2 at $DIR/mir.rs:6:5: 6:12 |
| 33 | + _9 = const true; // scope 0 at $DIR/mir.rs:6:13: 6:32 |
| 34 | + Deinit(_1); // scope 0 at $DIR/mir.rs:6:13: 6:32 |
| 35 | + ((_1 as Some).0: std::string::String) = move _2; // scope 0 at $DIR/mir.rs:6:13: 6:32 |
| 36 | + discriminant(_1) = 1; // scope 0 at $DIR/mir.rs:6:13: 6:32 |
| 37 | + _7 = discriminant(_1); // scope 2 at $DIR/mir.rs:8:11: 8:12 |
| 38 | + switchInt(move _7) -> [1_isize: bb3, otherwise: bb2]; // scope 2 at $DIR/mir.rs:8:5: 8:12 |
39 | 39 | }
|
40 | 40 |
|
41 | 41 | bb2: {
|
42 |
| - _9 = const false; // scope 2 at $DIR/mir.rs:8:9: 8:10 |
43 |
| - _8 = move _1; // scope 2 at $DIR/mir.rs:8:9: 8:10 |
44 |
| - _3 = const 4321_i32; // scope 3 at $DIR/mir.rs:8:14: 8:22 |
45 |
| - drop(_8) -> [return: bb7, unwind: bb12]; // scope 2 at $DIR/mir.rs:8:21: 8:22 |
| 42 | + _9 = const false; // scope 2 at $DIR/mir.rs:10:9: 10:10 |
| 43 | + _8 = move _1; // scope 2 at $DIR/mir.rs:10:9: 10:10 |
| 44 | + _3 = const 4321_i32; // scope 3 at $DIR/mir.rs:10:14: 10:22 |
| 45 | + drop(_8) -> [return: bb7, unwind: bb12]; // scope 2 at $DIR/mir.rs:10:21: 10:22 |
46 | 46 | }
|
47 | 47 |
|
48 | 48 | bb3: {
|
49 |
| - _4 = &((_1 as Some).0: std::string::String); // scope 2 at $DIR/mir.rs:7:14: 7:17 |
50 |
| - _5 = <String as Deref>::deref(move _4) -> bb4; // scope 2 at $DIR/mir.rs:7:14: 7:17 |
| 49 | + _4 = &((_1 as Some).0: std::string::String); // scope 2 at $DIR/mir.rs:9:14: 9:17 |
| 50 | + _5 = <String as Deref>::deref(move _4) -> bb4; // scope 2 at $DIR/mir.rs:9:14: 9:17 |
51 | 51 | // mir::Constant
|
52 |
| - // + span: $DIR/mir.rs:7:14: 7:17 |
| 52 | + // + span: $DIR/mir.rs:9:14: 9:17 |
53 | 53 | // + literal: Const { ty: for<'r> fn(&'r String) -> &'r <String as Deref>::Target {<String as Deref>::deref}, val: Value(Scalar(<ZST>)) }
|
54 | 54 | }
|
55 | 55 |
|
56 | 56 | bb4: {
|
57 |
| - _6 = <str as PartialEq>::eq(_5, const "a") -> [return: bb5, unwind: bb12]; // scope 2 at $DIR/mir.rs:7:14: 7:17 |
| 57 | + _6 = <str as PartialEq>::eq(_5, const "a") -> [return: bb5, unwind: bb12]; // scope 2 at $DIR/mir.rs:9:14: 9:17 |
58 | 58 | // mir::Constant
|
59 |
| - // + span: $DIR/mir.rs:7:14: 7:17 |
| 59 | + // + span: $DIR/mir.rs:9:14: 9:17 |
60 | 60 | // + literal: Const { ty: for<'r, 's> fn(&'r str, &'s str) -> bool {<str as PartialEq>::eq}, val: Value(Scalar(<ZST>)) }
|
61 | 61 | // mir::Constant
|
62 |
| - // + span: $DIR/mir.rs:7:14: 7:17 |
| 62 | + // + span: $DIR/mir.rs:9:14: 9:17 |
63 | 63 | // + literal: Const { ty: &str, val: Value(Slice(..)) }
|
64 | 64 | }
|
65 | 65 |
|
66 | 66 | bb5: {
|
67 |
| - switchInt(move _6) -> [false: bb2, otherwise: bb6]; // scope 2 at $DIR/mir.rs:7:14: 7:17 |
| 67 | + switchInt(move _6) -> [false: bb2, otherwise: bb6]; // scope 2 at $DIR/mir.rs:9:14: 9:17 |
68 | 68 | }
|
69 | 69 |
|
70 | 70 | bb6: {
|
71 |
| - _3 = const 1234_i32; // scope 2 at $DIR/mir.rs:7:22: 7:30 |
72 |
| - goto -> bb7; // scope 2 at $DIR/mir.rs:7:22: 7:30 |
| 71 | + _3 = const 1234_i32; // scope 2 at $DIR/mir.rs:9:22: 9:30 |
| 72 | + goto -> bb7; // scope 2 at $DIR/mir.rs:9:22: 9:30 |
73 | 73 | }
|
74 | 74 |
|
75 | 75 | bb7: {
|
76 |
| - switchInt(_9) -> [false: bb8, otherwise: bb10]; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 76 | + switchInt(_9) -> [false: bb8, otherwise: bb10]; // scope 0 at $DIR/mir.rs:12:1: 12:2 |
77 | 77 | }
|
78 | 78 |
|
79 | 79 | bb8: {
|
80 |
| - _9 = const false; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
81 |
| - return; // scope 0 at $DIR/mir.rs:10:2: 10:2 |
| 80 | + _9 = const false; // scope 0 at $DIR/mir.rs:12:1: 12:2 |
| 81 | + return; // scope 0 at $DIR/mir.rs:12:2: 12:2 |
82 | 82 | }
|
83 | 83 |
|
84 | 84 | bb9 (cleanup): {
|
85 |
| - resume; // scope 0 at $DIR/mir.rs:3:1: 10:2 |
| 85 | + resume; // scope 0 at $DIR/mir.rs:5:1: 12:2 |
86 | 86 | }
|
87 | 87 |
|
88 | 88 | bb10: {
|
89 |
| - drop(_1) -> bb8; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 89 | + drop(_1) -> bb8; // scope 0 at $DIR/mir.rs:12:1: 12:2 |
90 | 90 | }
|
91 | 91 |
|
92 | 92 | bb11 (cleanup): {
|
93 |
| - drop(_1) -> bb9; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 93 | + drop(_1) -> bb9; // scope 0 at $DIR/mir.rs:12:1: 12:2 |
94 | 94 | }
|
95 | 95 |
|
96 | 96 | bb12 (cleanup): {
|
97 |
| - switchInt(_9) -> [false: bb9, otherwise: bb11]; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 97 | + switchInt(_9) -> [false: bb9, otherwise: bb11]; // scope 0 at $DIR/mir.rs:12:1: 12:2 |
98 | 98 | }
|
99 | 99 | }
|
0 commit comments