|
| 1 | +// WARNING: This output format is intended for human consumers only |
| 2 | +// and is subject to change without notice. Knock yourself out. |
| 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 |
| 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 |
| 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 |
| 18 | + scope 3 { |
| 19 | + debug s => _8; // in scope 3 at $DIR/mir.rs:8:9: 8:10 |
| 20 | + } |
| 21 | + } |
| 22 | + } |
| 23 | + |
| 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 |
| 27 | + // mir::Constant |
| 28 | + // + span: $DIR/mir.rs:4:18: 4:29 |
| 29 | + // + literal: Const { ty: fn() -> String {String::new}, val: Value(Scalar(<ZST>)) } |
| 30 | + } |
| 31 | + |
| 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 |
| 39 | + } |
| 40 | + |
| 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 |
| 46 | + } |
| 47 | + |
| 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 |
| 51 | + // mir::Constant |
| 52 | + // + span: $DIR/mir.rs:7:14: 7:17 |
| 53 | + // + literal: Const { ty: for<'r> fn(&'r String) -> &'r <String as Deref>::Target {<String as Deref>::deref}, val: Value(Scalar(<ZST>)) } |
| 54 | + } |
| 55 | + |
| 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 |
| 58 | + // mir::Constant |
| 59 | + // + span: $DIR/mir.rs:7:14: 7:17 |
| 60 | + // + literal: Const { ty: for<'r, 's> fn(&'r str, &'s str) -> bool {<str as PartialEq>::eq}, val: Value(Scalar(<ZST>)) } |
| 61 | + // mir::Constant |
| 62 | + // + span: $DIR/mir.rs:7:14: 7:17 |
| 63 | + // + literal: Const { ty: &str, val: Value(Slice(..)) } |
| 64 | + } |
| 65 | + |
| 66 | + bb5: { |
| 67 | + switchInt(move _6) -> [false: bb2, otherwise: bb6]; // scope 2 at $DIR/mir.rs:7:14: 7:17 |
| 68 | + } |
| 69 | + |
| 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 |
| 73 | + } |
| 74 | + |
| 75 | + bb7: { |
| 76 | + switchInt(_9) -> [false: bb8, otherwise: bb10]; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 77 | + } |
| 78 | + |
| 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 |
| 82 | + } |
| 83 | + |
| 84 | + bb9 (cleanup): { |
| 85 | + resume; // scope 0 at $DIR/mir.rs:3:1: 10:2 |
| 86 | + } |
| 87 | + |
| 88 | + bb10: { |
| 89 | + drop(_1) -> bb8; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 90 | + } |
| 91 | + |
| 92 | + bb11 (cleanup): { |
| 93 | + drop(_1) -> bb9; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 94 | + } |
| 95 | + |
| 96 | + bb12 (cleanup): { |
| 97 | + switchInt(_9) -> [false: bb9, otherwise: bb11]; // scope 0 at $DIR/mir.rs:10:1: 10:2 |
| 98 | + } |
| 99 | +} |
0 commit comments