fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1// MIR for `try_identity` after SimplifyBranchSame 2 3fn try_identity(_1: std::result::Result<u32, i32>) -> std::result::Result<u32, i32> { 4 debug x => _1; // in scope 0 at $DIR/simplify_try.rs:5:17: 5:18 5 let mut _0: std::result::Result<u32, i32>; // return place in scope 0 at $DIR/simplify_try.rs:5:41: 5:57 6 let _2: u32; // in scope 0 at $DIR/simplify_try.rs:6:9: 6:10 7 let mut _3: std::result::Result<u32, i32>; // in scope 0 at $DIR/simplify_try.rs:6:13: 6:15 8 let mut _4: std::result::Result<u32, i32>; // in scope 0 at $DIR/simplify_try.rs:6:13: 6:14 9 let mut _5: isize; // in scope 0 at $DIR/simplify_try.rs:6:14: 6:15 10 let _6: i32; // in scope 0 at $DIR/simplify_try.rs:6:14: 6:15 11 let mut _7: !; // in scope 0 at $DIR/simplify_try.rs:6:14: 6:15 12 let mut _8: i32; // in scope 0 at $DIR/simplify_try.rs:6:14: 6:15 13 let mut _9: i32; // in scope 0 at $DIR/simplify_try.rs:6:14: 6:15 14 let _10: u32; // in scope 0 at $DIR/simplify_try.rs:6:13: 6:15 15 let mut _11: u32; // in scope 0 at $DIR/simplify_try.rs:7:8: 7:9 16 scope 1 { 17 debug y => _10; // in scope 1 at $DIR/simplify_try.rs:6:9: 6:10 18 } 19 scope 2 { 20 debug err => _6; // in scope 2 at $DIR/simplify_try.rs:6:14: 6:15 21 scope 3 { 22 scope 7 { 23 debug t => _6; // in scope 7 at $SRC_DIR/libcore/convert/mod.rs:LL:COL 24 } 25 scope 8 { 26 debug v => _6; // in scope 8 at $SRC_DIR/libcore/result.rs:LL:COL 27 let mut _12: i32; // in scope 8 at $DIR/simplify_try.rs:6:14: 6:15 28 } 29 } 30 } 31 scope 4 { 32 debug val => _10; // in scope 4 at $DIR/simplify_try.rs:6:13: 6:15 33 scope 5 { 34 } 35 } 36 scope 6 { 37 debug self => _1; // in scope 6 at $SRC_DIR/libcore/result.rs:LL:COL 38 } 39 40 bb0: { 41 _5 = discriminant(_1); // bb0[0]: scope 0 at $DIR/simplify_try.rs:6:14: 6:15 42 goto -> bb1; // bb0[1]: scope 0 at $DIR/simplify_try.rs:6:14: 6:15 43 } 44 45 bb1: { 46 _0 = move _1; // bb1[0]: scope 1 at $DIR/simplify_try.rs:7:5: 7:10 47 nop; // bb1[1]: scope 1 at $DIR/simplify_try.rs:7:5: 7:10 48 nop; // bb1[2]: scope 1 at $DIR/simplify_try.rs:7:5: 7:10 49 goto -> bb2; // bb1[3]: scope 0 at $DIR/simplify_try.rs:8:2: 8:2 50 } 51 52 bb2: { 53 return; // bb2[0]: scope 0 at $DIR/simplify_try.rs:8:2: 8:2 54 } 55}