blob: 33d3fdb084a2b1c6bcc6af0c691e03c9e65bd3ba [file]
- // MIR for `test` before SimplifyComparisonIntegral
+ // MIR for `test` after SimplifyComparisonIntegral
fn test(_1: T) -> () {
debug x => _1;
let mut _0: ();
let _2: &[T];
let _3: &[T; 3];
let _4: [T; 3];
let mut _8: !;
scope 1 {
debug v => _2;
let _5: &T;
let _6: &T;
let _7: &T;
scope 2 {
debug v1 => _5;
debug v2 => _6;
debug v3 => _7;
}
}
bb0: {
StorageLive(_3);
StorageLive(_4);
_4 = [copy _1, copy _1, copy _1];
_3 = &_4;
_2 = copy _3 as &[T] (PointerCoercion(Unsize, Implicit));
StorageDead(_3);
goto -> bb2;
}
bb1: {
_8 = core::panicking::unreachable_default_msg() -> unwind unreachable;
}
bb2: {
// DBG: _5 = &(*_2)[0 of 3];
// DBG: _6 = &(*_2)[1 of 3];
// DBG: _7 = &(*_2)[2 of 3];
_0 = const ();
StorageDead(_4);
return;
}
}