rust/tests/mir-opt/const_prop/issue_66971.main.ConstProp.panic-abort.diff

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

23 lines
538 B
Diff
Raw Normal View History

2020-04-04 12:15:01 -05:00
- // MIR for `main` before ConstProp
+ // MIR for `main` after ConstProp
fn main() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let _1: ();
let mut _2: ((), u8, u8);
2020-04-04 12:15:01 -05:00
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
2023-02-08 15:05:56 -06:00
- _2 = (const (), const 0_u8, const 0_u8);
- _1 = encode(move _2) -> [return: bb1, unwind unreachable];
+ _2 = const ((), 0_u8, 0_u8);
+ _1 = encode(const ((), 0_u8, 0_u8)) -> [return: bb1, unwind unreachable];
2020-04-04 12:15:01 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
return;
2020-04-04 12:15:01 -05:00
}
}