]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/issue_91633.bar.built.after.mir
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / mir-opt / issue_91633.bar.built.after.mir
1 // MIR for `bar` after built
2
3 fn bar(_1: Box<[T]>) -> () {
4     debug it => _1;                      // in scope 0 at $DIR/issue_91633.rs:+0:12: +0:14
5     let mut _0: ();                      // return place in scope 0 at $DIR/issue_91633.rs:+1:2: +1:2
6     let mut _2: &<[T] as std::ops::Index<usize>>::Output; // in scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
7     let mut _3: &[T];                    // in scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
8     scope 1 {
9     }
10
11     bb0: {
12         StorageLive(_2);                 // scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
13         StorageLive(_3);                 // scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
14         _3 = &(*_1);                     // scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
15         _2 = <[T] as Index<usize>>::index(move _3, const 0_usize) -> [return: bb1, unwind: bb3]; // scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
16                                          // mir::Constant
17                                          // + span: $DIR/issue_91633.rs:15:14: 15:19
18                                          // + literal: Const { ty: for<'a> fn(&'a [T], usize) -> &'a <[T] as Index<usize>>::Output {<[T] as Index<usize>>::index}, val: Value(<ZST>) }
19     }
20
21     bb1: {
22         StorageDead(_3);                 // scope 0 at $DIR/issue_91633.rs:+4:18: +4:19
23         StorageDead(_2);                 // scope 0 at $DIR/issue_91633.rs:+4:19: +4:20
24         _0 = const ();                   // scope 0 at $DIR/issue_91633.rs:+3:2: +5:3
25         drop(_1) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_91633.rs:+5:2: +5:3
26     }
27
28     bb2: {
29         return;                          // scope 0 at $DIR/issue_91633.rs:+5:3: +5:3
30     }
31
32     bb3 (cleanup): {
33         drop(_1) -> bb4;                 // scope 0 at $DIR/issue_91633.rs:+5:2: +5:3
34     }
35
36     bb4 (cleanup): {
37         resume;                          // scope 0 at $DIR/issue_91633.rs:+0:1: +5:3
38     }
39 }