fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1// MIR for `try_identity` after SimplifyLocals 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: i32; // in scope 0 at $DIR/simplify_try.rs:6:14: 6:15 7 let _3: u32; // in scope 0 at $DIR/simplify_try.rs:6:13: 6:15 8 scope 1 { 9 debug y => _3; // in scope 1 at $DIR/simplify_try.rs:6:9: 6:10 10 } 11 scope 2 { 12 debug err => _2; // in scope 2 at $DIR/simplify_try.rs:6:14: 6:15 13 scope 3 { 14 scope 7 { 15 debug t => _2; // in scope 7 at $SRC_DIR/libcore/convert/mod.rs:LL:COL 16 } 17 scope 8 { 18 debug v => _2; // in scope 8 at $SRC_DIR/libcore/result.rs:LL:COL 19 } 20 } 21 } 22 scope 4 { 23 debug val => _3; // in scope 4 at $DIR/simplify_try.rs:6:13: 6:15 24 scope 5 { 25 } 26 } 27 scope 6 { 28 debug self => _1; // in scope 6 at $SRC_DIR/libcore/result.rs:LL:COL 29 } 30 31 bb0: { 32 _0 = move _1; // bb0[0]: scope 1 at $DIR/simplify_try.rs:7:5: 7:10 33 return; // bb0[1]: scope 0 at $DIR/simplify_try.rs:8:2: 8:2 34 } 35}