|
12 | 12 | let mut _7: u32; // in scope 0 at $DIR/issue_101973.rs:+1:31: +1:52
|
13 | 13 | let mut _8: u32; // in scope 0 at $DIR/issue_101973.rs:+1:32: +1:45
|
14 | 14 | let mut _9: u32; // in scope 0 at $DIR/issue_101973.rs:+1:33: +1:39
|
15 |
| - let mut _10: (u32, bool); // in scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
16 |
| - let mut _11: (u32, bool); // in scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 15 | + let mut _10: i32; // in scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 16 | + let mut _11: bool; // in scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 17 | + let mut _12: i32; // in scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 18 | + let mut _13: bool; // in scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
17 | 19 | scope 1 (inlined imm8) { // at $DIR/issue_101973.rs:14:5: 14:17
|
18 | 20 | debug x => _1; // in scope 1 at $DIR/issue_101973.rs:5:13: 5:14
|
19 |
| - let mut _12: u32; // in scope 1 at $DIR/issue_101973.rs:7:12: 7:27 |
20 |
| - let mut _13: u32; // in scope 1 at $DIR/issue_101973.rs:7:12: 7:20 |
21 |
| - let mut _14: (u32, bool); // in scope 1 at $DIR/issue_101973.rs:7:12: 7:20 |
| 21 | + let mut _14: u32; // in scope 1 at $DIR/issue_101973.rs:7:12: 7:27 |
| 22 | + let mut _15: u32; // in scope 1 at $DIR/issue_101973.rs:7:12: 7:20 |
22 | 23 | scope 2 {
|
23 | 24 | debug out => _4; // in scope 2 at $DIR/issue_101973.rs:6:9: 6:16
|
24 | 25 | }
|
|
32 | 33 | StorageLive(_2); // scope 0 at $DIR/issue_101973.rs:+1:5: +1:65
|
33 | 34 | StorageLive(_3); // scope 0 at $DIR/issue_101973.rs:+1:5: +1:58
|
34 | 35 | StorageLive(_4); // scope 0 at $DIR/issue_101973.rs:+1:5: +1:17
|
35 |
| - StorageLive(_12); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27 |
36 |
| - StorageLive(_13); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20 |
37 |
| - _14 = CheckedShr(_1, const 0_i32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20 |
38 |
| - assert(!move (_14.1: bool), "attempt to shift right by `{}`, which would overflow", const 0_i32) -> bb3; // scope 2 at $DIR/issue_101973.rs:7:12: 7:20 |
| 36 | + StorageLive(_14); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27 |
| 37 | + StorageLive(_15); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20 |
| 38 | + _15 = Shr(_1, const 0_i32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20 |
| 39 | + _14 = BitAnd(move _15, const 255_u32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27 |
| 40 | + StorageDead(_15); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27 |
| 41 | + _4 = BitOr(const 0_u32, move _14); // scope 2 at $DIR/issue_101973.rs:7:5: 7:27 |
| 42 | + StorageDead(_14); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27 |
| 43 | + StorageLive(_6); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 44 | + StorageLive(_7); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:52 |
| 45 | + StorageLive(_8); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 46 | +- _10 = BitAnd(const 8_i32, const -32_i32); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 47 | +- _11 = Ne(move _10, const 0_i32); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 48 | +- assert(!move _11, "attempt to shift right by `{}`, which would overflow", const 8_i32) -> bb1; // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 49 | ++ _10 = const 0_i32; // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 50 | ++ _11 = const false; // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 51 | ++ assert(!const false, "attempt to shift right by `{}`, which would overflow", const 8_i32) -> bb1; // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
39 | 52 | }
|
40 | 53 |
|
41 | 54 | bb1: {
|
42 |
| - _8 = move (_10.0: u32); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
| 55 | + _8 = Shr(_1, const 8_i32); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
43 | 56 | _7 = BitAnd(move _8, const 15_u32); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:52
|
44 | 57 | StorageDead(_8); // scope 0 at $DIR/issue_101973.rs:+1:51: +1:52
|
45 |
| - _11 = CheckedShl(_7, const 1_i32); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
46 |
| - assert(!move (_11.1: bool), "attempt to shift left by `{}`, which would overflow", const 1_i32) -> bb2; // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 58 | +- _12 = BitAnd(const 1_i32, const -32_i32); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 59 | +- _13 = Ne(move _12, const 0_i32); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 60 | +- assert(!move _13, "attempt to shift left by `{}`, which would overflow", const 1_i32) -> bb2; // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 61 | ++ _12 = const 0_i32; // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 62 | ++ _13 = const false; // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 63 | ++ assert(!const false, "attempt to shift left by `{}`, which would overflow", const 1_i32) -> bb2; // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
47 | 64 | }
|
48 | 65 |
|
49 | 66 | bb2: {
|
50 |
| - _6 = move (_11.0: u32); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
| 67 | + _6 = Shl(move _7, const 1_i32); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
51 | 68 | StorageDead(_7); // scope 0 at $DIR/issue_101973.rs:+1:56: +1:57
|
52 |
| - _3 = rotate_right::<u32>(_4, _6) -> bb4; // scope 3 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL |
| 69 | + _3 = rotate_right::<u32>(_4, _6) -> bb3; // scope 3 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL |
53 | 70 | // mir::Constant
|
54 | 71 | // + span: $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
|
55 | 72 | // + literal: Const { ty: extern "rust-intrinsic" fn(u32, u32) -> u32 {rotate_right::<u32>}, val: Value(<ZST>) }
|
56 | 73 | }
|
57 | 74 |
|
58 | 75 | bb3: {
|
59 |
| - _13 = move (_14.0: u32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:20 |
60 |
| - _12 = BitAnd(move _13, const 255_u32); // scope 2 at $DIR/issue_101973.rs:7:12: 7:27 |
61 |
| - StorageDead(_13); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27 |
62 |
| - _4 = BitOr(const 0_u32, move _12); // scope 2 at $DIR/issue_101973.rs:7:5: 7:27 |
63 |
| - StorageDead(_12); // scope 2 at $DIR/issue_101973.rs:7:26: 7:27 |
64 |
| - StorageLive(_6); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:57 |
65 |
| - StorageLive(_7); // scope 0 at $DIR/issue_101973.rs:+1:31: +1:52 |
66 |
| - StorageLive(_8); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
67 |
| - _10 = CheckedShr(_1, const 8_i32); // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
68 |
| - assert(!move (_10.1: bool), "attempt to shift right by `{}`, which would overflow", const 8_i32) -> bb1; // scope 0 at $DIR/issue_101973.rs:+1:32: +1:45 |
69 |
| - } |
70 |
| - |
71 |
| - bb4: { |
72 | 76 | StorageDead(_6); // scope 0 at $DIR/issue_101973.rs:+1:57: +1:58
|
73 | 77 | StorageDead(_4); // scope 0 at $DIR/issue_101973.rs:+1:57: +1:58
|
74 | 78 | _2 = move _3 as i32 (IntToInt); // scope 0 at $DIR/issue_101973.rs:+1:5: +1:65
|
|
0 commit comments