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]>) -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug it => _1;
|
|
|
|
let mut _0: ();
|
|
|
|
let mut _2: &<[T] as std::ops::Index<usize>>::Output;
|
|
|
|
let mut _3: &[T];
|
2022-08-13 10:13:20 -05:00
|
|
|
scope 1 {
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = &(*_1);
|
2024-06-30 06:21:12 -05:00
|
|
|
_2 = <[T] as Index<usize>>::index(move _3, const 0_usize) -> [return: bb1, unwind: bb4];
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
|
|
|
PlaceMention((*_2));
|
|
|
|
StorageDead(_2);
|
|
|
|
_0 = const ();
|
2024-06-30 06:21:12 -05:00
|
|
|
drop(_1) -> [return: bb3, unwind: bb5];
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-02-11 21:56:03 -06:00
|
|
|
FakeRead(ForMatchedPlace(None), (*_2));
|
|
|
|
unreachable;
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
2024-02-11 21:56:03 -06:00
|
|
|
bb3: {
|
2024-02-15 19:57:24 -06:00
|
|
|
return;
|
2024-02-11 21:56:03 -06:00
|
|
|
}
|
|
|
|
|
2024-06-30 06:21:12 -05:00
|
|
|
bb4 (cleanup): {
|
|
|
|
drop(_1) -> [return: bb5, unwind terminate(cleanup)];
|
2024-02-15 19:57:24 -06:00
|
|
|
}
|
|
|
|
|
2024-06-30 06:21:12 -05:00
|
|
|
bb5 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
resume;
|
2022-08-13 10:13:20 -05:00
|
|
|
}
|
|
|
|
}
|