rust/tests/mir-opt/issue_91633.hey.built.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
769 B
Rust
Raw Permalink Normal View History

// MIR for `hey` after built
2022-08-13 10:13:20 -05:00
fn hey(_1: &[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 _3: &<[T] as std::ops::Index<usize>>::Output;
let mut _4: &[T];
2022-08-13 10:13:20 -05:00
scope 1 {
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
StorageLive(_3);
StorageLive(_4);
_4 = &(*_1);
_3 = <[T] as Index<usize>>::index(move _4, const 0_usize) -> [return: bb1, unwind: bb3];
2022-08-13 10:13:20 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageDead(_4);
_2 = &(*_3);
PlaceMention(_2);
StorageDead(_2);
_0 = const ();
StorageDead(_3);
return;
2022-08-13 10:13:20 -05:00
}
2024-02-11 21:56:03 -06:00
bb2: {
FakeRead(ForMatchedPlace(None), _2);
unreachable;
}
bb3 (cleanup): {
2023-06-06 08:47:00 -05:00
resume;
2022-08-13 10:13:20 -05:00
}
}