2020-09-13 08:47:20 +00:00
|
|
|
- // MIR for `test` before SimplifyComparisonIntegral
|
|
|
|
+ // MIR for `test` after SimplifyComparisonIntegral
|
|
|
|
|
|
|
|
fn test(_1: T) -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
debug x => _1;
|
|
|
|
let mut _0: ();
|
|
|
|
let _2: &[T];
|
2024-07-27 06:36:17 +00:00
|
|
|
let _3: &[T; 3];
|
2023-03-12 14:10:30 +00:00
|
|
|
let _4: [T; 3];
|
2023-09-16 17:13:30 +00:00
|
|
|
let mut _5: usize;
|
|
|
|
let mut _6: bool;
|
|
|
|
let mut _10: !;
|
2020-09-13 08:47:20 +00:00
|
|
|
scope 1 {
|
2023-06-06 13:47:00 +00:00
|
|
|
debug v => _2;
|
2023-09-16 17:13:30 +00:00
|
|
|
let _7: &T;
|
|
|
|
let _8: &T;
|
|
|
|
let _9: &T;
|
2020-09-13 08:47:20 +00:00
|
|
|
scope 2 {
|
2023-09-16 17:13:30 +00:00
|
|
|
debug v1 => _7;
|
|
|
|
debug v2 => _8;
|
|
|
|
debug v3 => _9;
|
2020-09-13 08:47:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-03-12 14:10:30 +00:00
|
|
|
StorageLive(_4);
|
|
|
|
_4 = [copy _1, copy _1, copy _1];
|
|
|
|
_3 = &_4;
|
2024-09-15 17:35:06 +00:00
|
|
|
_2 = copy _3 as &[T] (PointerCoercion(Unsize, Implicit));
|
2024-06-03 02:41:00 +00:00
|
|
|
nop;
|
|
|
|
nop;
|
2023-04-23 16:15:22 +00:00
|
|
|
goto -> bb2;
|
2020-09-13 08:47:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-09-16 17:13:30 +00:00
|
|
|
_10 = core::panicking::panic(const "internal error: entered unreachable code") -> unwind unreachable;
|
2020-09-13 08:47:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-09-16 17:13:30 +00:00
|
|
|
StorageLive(_7);
|
|
|
|
_7 = &(*_2)[0 of 3];
|
|
|
|
StorageLive(_8);
|
|
|
|
_8 = &(*_2)[1 of 3];
|
|
|
|
StorageLive(_9);
|
|
|
|
_9 = &(*_2)[2 of 3];
|
|
|
|
StorageDead(_9);
|
|
|
|
StorageDead(_8);
|
|
|
|
StorageDead(_7);
|
2023-03-12 14:10:30 +00:00
|
|
|
StorageDead(_4);
|
2023-06-06 13:47:00 +00:00
|
|
|
return;
|
2020-09-13 08:47:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|