]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify_try.try_identity.SimplifyLocals.after.mir
Auto merge of #88435 - cjgillot:no-walk-crate, r=Aaron1011
[rust.git] / src / test / mir-opt / simplify_try.try_identity.SimplifyLocals.after.mir
1 // MIR for `try_identity` after SimplifyLocals
2
3 fn try_identity(_1: Result<u32, i32>) -> Result<u32, i32> {
4     debug x => _1;                       // in scope 0 at $DIR/simplify_try.rs:20:17: 20:18
5     let mut _0: std::result::Result<u32, i32>; // return place in scope 0 at $DIR/simplify_try.rs:20:41: 20:57
6     scope 1 {
7         debug y => ((_0 as Ok).0: u32);  // in scope 1 at $DIR/simplify_try.rs:21:9: 21:10
8     }
9     scope 2 {
10         debug e => ((_0 as Err).0: i32); // in scope 2 at $DIR/simplify_try.rs:22:13: 22:14
11         scope 5 (inlined <i32 as From<i32>>::from) { // at $DIR/simplify_try.rs:22:37: 22:50
12             debug t => ((_0 as Err).0: i32); // in scope 5 at $DIR/simplify_try.rs:22:37: 22:50
13         }
14         scope 6 (inlined from_error::<u32, i32>) { // at $DIR/simplify_try.rs:22:26: 22:51
15             debug e => ((_0 as Err).0: i32); // in scope 6 at $DIR/simplify_try.rs:22:26: 22:51
16         }
17     }
18     scope 3 {
19         debug v => ((_0 as Ok).0: u32);  // in scope 3 at $DIR/simplify_try.rs:23:12: 23:13
20     }
21     scope 4 (inlined into_result::<u32, i32>) { // at $DIR/simplify_try.rs:21:19: 21:33
22         debug r => _0;                   // in scope 4 at $DIR/simplify_try.rs:21:19: 21:33
23     }
24
25     bb0: {
26         _0 = _1;                         // scope 0 at $DIR/simplify_try.rs:21:31: 21:32
27         return;                          // scope 0 at $DIR/simplify_try.rs:26:2: 26:2
28     }
29 }