]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/div_overflow.const_dividend.PreCodegen.after.mir
Do not eagerly recover for bad impl-trait in macros
[rust.git] / tests / mir-opt / div_overflow.const_dividend.PreCodegen.after.mir
1 // MIR for `const_dividend` after PreCodegen
2
3 fn const_dividend(_1: i32) -> i32 {
4     debug a => _1;                       // in scope 0 at $DIR/div_overflow.rs:+0:23: +0:24
5     let mut _0: i32;                     // return place in scope 0 at $DIR/div_overflow.rs:+0:34: +0:37
6     let mut _2: bool;                    // in scope 0 at $DIR/div_overflow.rs:+1:5: +1:12
7
8     bb0: {
9         _2 = Eq(_1, const 0_i32);        // scope 0 at $DIR/div_overflow.rs:+1:5: +1:12
10         assert(!move _2, "attempt to divide `{}` by zero", const 256_i32) -> bb1; // scope 0 at $DIR/div_overflow.rs:+1:5: +1:12
11     }
12
13     bb1: {
14         _0 = Div(const 256_i32, _1);     // scope 0 at $DIR/div_overflow.rs:+1:5: +1:12
15         return;                          // scope 0 at $DIR/div_overflow.rs:+2:2: +2:2
16     }
17 }