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