]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir
Do not eagerly recover for bad impl-trait in macros
[rust.git] / tests / mir-opt / issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir
1 // MIR for `<impl at $DIR/issue_41697.rs:18:1: 18:23>::{constant#0}` after SimplifyCfg-promote-consts
2
3 <impl at $DIR/issue_41697.rs:18:1: 18:23>::{constant#0}: usize = {
4     let mut _0: usize;                   // return place in scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
5     let mut _1: (usize, bool);           // in scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
6
7     bb0: {
8         _1 = CheckedAdd(const 1_usize, const 1_usize); // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
9         assert(!move (_1.1: bool), "attempt to compute `{} + {}`, which would overflow", const 1_usize, const 1_usize) -> [success: bb1, unwind: bb2]; // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
10     }
11
12     bb1: {
13         _0 = move (_1.0: usize);         // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
14         return;                          // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
15     }
16
17     bb2 (cleanup): {
18         resume;                          // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
19     }
20 }