2024-06-02 19:18:33 -05:00
|
|
|
// MIR for `<impl at $DIR/issue_41697.rs:18:1: 18:25>::{constant#0}` after SimplifyCfg-promote-consts
|
2020-04-02 16:09:01 -05:00
|
|
|
|
2024-06-02 19:18:33 -05:00
|
|
|
<impl at $DIR/issue_41697.rs:18:1: 18:25>::{constant#0}: usize = {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: usize;
|
|
|
|
let mut _1: (usize, bool);
|
2020-04-02 16:09:01 -05:00
|
|
|
|
|
|
|
bb0: {
|
2024-05-16 04:07:31 -05:00
|
|
|
_1 = AddWithOverflow(const 1_usize, const 1_usize);
|
2023-06-06 08:47:00 -05:00
|
|
|
assert(!move (_1.1: bool), "attempt to compute `{} + {}`, which would overflow", const 1_usize, const 1_usize) -> [success: bb1, unwind: bb2];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = move (_1.0: usize);
|
|
|
|
return;
|
2020-05-02 13:59:05 -05:00
|
|
|
}
|
2020-10-02 15:11:24 -05:00
|
|
|
|
|
|
|
bb2 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
resume;
|
2020-10-02 15:11:24 -05:00
|
|
|
}
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|