|
2 | 2 | + // MIR for `main` after DataflowConstProp |
3 | 3 |
|
4 | 4 | fn main() -> () { |
5 | | - let mut _0: (); // return place in scope 0 at $DIR/inherit_overflow_checks_use.rs:+0:11: +0:11 |
6 | | - let mut _1: u8; // in scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
7 | | - let mut _2: u8; // in scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
8 | | - let mut _3: u8; // in scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
| 5 | + let mut _0: (); // return place in scope 0 at $DIR/inherit_overflow.rs:+0:11: +0:11 |
| 6 | + let mut _1: u8; // in scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 7 | + let mut _2: u8; // in scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 8 | + let mut _3: u8; // in scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
9 | 9 | scope 1 { |
10 | 10 | } |
11 | | - scope 2 (inlined <u8 as Add>::add) { // at $DIR/inherit_overflow_checks_use.rs:7:13: 7:47 |
| 11 | + scope 2 (inlined <u8 as Add>::add) { // at $DIR/inherit_overflow.rs:7:13: 7:47 |
12 | 12 | debug self => _2; // in scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
13 | 13 | debug other => _3; // in scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
14 | 14 | let mut _4: u8; // in scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
|
17 | 17 | } |
18 | 18 |
|
19 | 19 | bb0: { |
20 | | - StorageLive(_1); // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
21 | | - StorageLive(_2); // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
22 | | - _2 = const u8::MAX; // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
23 | | - StorageLive(_3); // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
24 | | - _3 = const 1_u8; // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
| 20 | + StorageLive(_1); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 21 | + StorageLive(_2); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 22 | + _2 = const u8::MAX; // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 23 | + StorageLive(_3); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 24 | + _3 = const 1_u8; // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
25 | 25 | StorageLive(_4); // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
26 | 26 | _4 = const u8::MAX; // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
27 | 27 | StorageLive(_5); // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
|
35 | 35 | + _1 = const 0_u8; // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
36 | 36 | StorageDead(_5); // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
37 | 37 | StorageDead(_4); // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL |
38 | | - StorageDead(_3); // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
39 | | - StorageDead(_2); // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:13: +3:47 |
40 | | - StorageDead(_1); // scope 0 at $DIR/inherit_overflow_checks_use.rs:+3:47: +3:48 |
41 | | - nop; // scope 0 at $DIR/inherit_overflow_checks_use.rs:+0:11: +4:2 |
42 | | - return; // scope 0 at $DIR/inherit_overflow_checks_use.rs:+4:2: +4:2 |
| 38 | + StorageDead(_3); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 39 | + StorageDead(_2); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47 |
| 40 | + StorageDead(_1); // scope 0 at $DIR/inherit_overflow.rs:+3:47: +3:48 |
| 41 | + nop; // scope 0 at $DIR/inherit_overflow.rs:+0:11: +4:2 |
| 42 | + return; // scope 0 at $DIR/inherit_overflow.rs:+4:2: +4:2 |
43 | 43 | } |
44 | 44 | } |
45 | 45 |
|
0 commit comments