2022-09-04 22:00:31 -05:00
|
|
|
// MIR for `bar` after built
|
2022-08-13 10:13:20 -05:00
|
|
|
|
|
|
|
fn bar(_1: Box<[T]>) -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
debug it => _1; // in scope 0 at $DIR/issue_91633.rs:+0:12: +0:14
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/issue_91633.rs:+1:2: +1:2
|
|
|
|
let mut _2: &<[T] as std::ops::Index<usize>>::Output; // in scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
|
|
|
|
let mut _3: &[T]; // in scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
|
2022-08-13 10:13:20 -05:00
|
|
|
scope 1 {
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
|
|
|
|
StorageLive(_3); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
|
|
|
|
_3 = &(*_1); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
|
|
|
|
_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
|
2022-08-13 10:13:20 -05:00
|
|
|
// mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
// + span: $DIR/issue_91633.rs:15:14: 15:19
|
2022-09-21 10:57:30 -05:00
|
|
|
// + literal: Const { ty: for<'a> fn(&'a [T], usize) -> &'a <[T] as Index<usize>>::Output {<[T] as Index<usize>>::index}, val: Value(<ZST>) }
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_3); // scope 0 at $DIR/issue_91633.rs:+4:18: +4:19
|
|
|
|
StorageDead(_2); // scope 0 at $DIR/issue_91633.rs:+4:19: +4:20
|
|
|
|
_0 = const (); // scope 0 at $DIR/issue_91633.rs:+3:2: +5:3
|
|
|
|
drop(_1) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_91633.rs:+5:2: +5:3
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2022-11-02 16:54:49 -05:00
|
|
|
return; // scope 0 at $DIR/issue_91633.rs:+5:3: +5:3
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3 (cleanup): {
|
2022-11-02 16:54:49 -05:00
|
|
|
drop(_1) -> bb4; // scope 0 at $DIR/issue_91633.rs:+5:2: +5:3
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4 (cleanup): {
|
2022-11-02 16:54:49 -05:00
|
|
|
resume; // scope 0 at $DIR/issue_91633.rs:+0:1: +5:3
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
}
|