|
10 | 10 | + scope 1 (inlined core::num::<impl u16>::unchecked_shl) { // at $DIR/unchecked_shifts.rs:11:7: 11:23
|
11 | 11 | + debug self => _3; // in scope 1 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
|
12 | 12 | + debug rhs => _4; // in scope 1 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
|
13 |
| -+ let mut _5: u16; // in scope 1 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
14 |
| -+ let mut _6: (u32,); // in scope 1 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 13 | ++ let mut _5: (u32,); // in scope 1 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 14 | ++ let mut _6: u32; // in scope 1 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
15 | 15 | + scope 2 {
|
| 16 | ++ scope 3 (inlined core::num::<impl u16>::unchecked_shl::conv) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 17 | ++ debug x => _6; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 18 | ++ let mut _7: std::option::Option<u16>; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 19 | ++ let mut _8: std::result::Result<u16, std::num::TryFromIntError>; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 20 | ++ scope 4 { |
| 21 | ++ scope 5 (inlined <u32 as TryInto<u16>>::try_into) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 22 | ++ debug self => _6; // in scope 5 at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 23 | ++ scope 6 (inlined convert::num::<impl TryFrom<u32> for u16>::try_from) { // at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 24 | ++ debug u => _6; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 25 | ++ let mut _9: bool; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 26 | ++ let mut _10: u32; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 27 | ++ let mut _11: u16; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 28 | ++ } |
| 29 | ++ } |
| 30 | ++ scope 7 (inlined Result::<u16, TryFromIntError>::ok) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 31 | ++ debug self => _8; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 32 | ++ let _12: u16; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 33 | ++ scope 8 { |
| 34 | ++ debug x => _12; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 35 | ++ } |
| 36 | ++ } |
| 37 | ++ scope 9 (inlined #[track_caller] Option::<u16>::unwrap_unchecked) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 38 | ++ debug self => _7; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 39 | ++ let mut _13: &std::option::Option<u16>; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 40 | ++ let _14: u16; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 41 | ++ scope 10 { |
| 42 | ++ debug val => _14; // in scope 10 at $SRC_DIR/core/src/option.rs:LL:COL |
| 43 | ++ } |
| 44 | ++ scope 11 { |
| 45 | ++ scope 13 (inlined unreachable_unchecked) { // at $SRC_DIR/core/src/option.rs:LL:COL |
| 46 | ++ scope 14 { |
| 47 | ++ scope 15 (inlined unreachable_unchecked::runtime) { // at $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| 48 | ++ } |
| 49 | ++ } |
| 50 | ++ } |
| 51 | ++ } |
| 52 | ++ scope 12 (inlined Option::<u16>::is_some) { // at $SRC_DIR/core/src/option.rs:LL:COL |
| 53 | ++ debug self => _13; // in scope 12 at $SRC_DIR/core/src/option.rs:LL:COL |
| 54 | ++ } |
| 55 | ++ } |
| 56 | ++ } |
| 57 | ++ } |
16 | 58 | + }
|
17 | 59 | + }
|
18 | 60 |
|
|
22 | 64 | StorageLive(_4); // scope 0 at $DIR/unchecked_shifts.rs:+1:21: +1:22
|
23 | 65 | _4 = _2; // scope 0 at $DIR/unchecked_shifts.rs:+1:21: +1:22
|
24 | 66 | - _0 = core::num::<impl u16>::unchecked_shl(move _3, move _4) -> bb1; // scope 0 at $DIR/unchecked_shifts.rs:+1:5: +1:23
|
25 |
| -+ StorageLive(_5); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
26 |
| -+ StorageLive(_6); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
27 |
| -+ _6 = (_4,); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
28 |
| -+ _5 = core::num::<impl u16>::unchecked_shl::conv(move (_6.0: u32)) -> bb1; // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
29 |
| - // mir::Constant |
| 67 | +- // mir::Constant |
30 | 68 | - // + span: $DIR/unchecked_shifts.rs:11:7: 11:20
|
31 | 69 | - // + literal: Const { ty: unsafe fn(u16, u32) -> u16 {core::num::<impl u16>::unchecked_shl}, val: Value(<ZST>) }
|
32 |
| -+ // + span: $SRC_DIR/core/src/num/mod.rs:LL:COL |
33 |
| -+ // + literal: Const { ty: fn(u32) -> u16 {core::num::<impl u16>::unchecked_shl::conv}, val: Value(<ZST>) } |
| 70 | ++ StorageLive(_14); // scope 0 at $DIR/unchecked_shifts.rs:+1:7: +1:23 |
| 71 | ++ StorageLive(_5); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 72 | ++ _5 = (_4,); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 73 | ++ StorageLive(_6); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 74 | ++ _6 = move (_5.0: u32); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 75 | ++ StorageLive(_7); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 76 | ++ StorageLive(_8); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 77 | ++ StorageLive(_9); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 78 | ++ StorageLive(_10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 79 | ++ _10 = const 65535_u32; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 80 | ++ _9 = Gt(_6, move _10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 81 | ++ StorageDead(_10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 82 | ++ switchInt(move _9) -> [0: bb3, otherwise: bb2]; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
34 | 83 | }
|
35 | 84 |
|
36 | 85 | bb1: {
|
| 86 | ++ StorageDead(_14); // scope 0 at $DIR/unchecked_shifts.rs:+1:7: +1:23 |
| 87 | + StorageDead(_4); // scope 0 at $DIR/unchecked_shifts.rs:+1:22: +1:23 |
| 88 | + StorageDead(_3); // scope 0 at $DIR/unchecked_shifts.rs:+1:22: +1:23 |
| 89 | + return; // scope 0 at $DIR/unchecked_shifts.rs:+2:2: +2:2 |
| 90 | ++ } |
| 91 | ++ |
| 92 | ++ bb2: { |
| 93 | ++ StorageDead(_9); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 94 | ++ StorageLive(_12); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 95 | ++ StorageDead(_12); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 96 | ++ StorageDead(_8); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 97 | ++ StorageLive(_13); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 98 | ++ unreachable; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 99 | ++ } |
| 100 | ++ |
| 101 | ++ bb3: { |
| 102 | ++ StorageLive(_11); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 103 | ++ _11 = _6 as u16 (IntToInt); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 104 | ++ _8 = Result::<u16, TryFromIntError>::Ok(move _11); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 105 | ++ StorageDead(_11); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 106 | ++ StorageDead(_9); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 107 | ++ StorageLive(_12); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 108 | ++ _12 = move ((_8 as Ok).0: u16); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 109 | ++ _7 = Option::<u16>::Some(move _12); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 110 | ++ StorageDead(_12); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 111 | ++ StorageDead(_8); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 112 | ++ StorageLive(_13); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 113 | ++ _14 = move ((_7 as Some).0: u16); // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 114 | ++ StorageDead(_13); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 115 | ++ StorageDead(_7); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
37 | 116 | + StorageDead(_6); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL
|
38 |
| -+ _0 = unchecked_shl::<u16>(_3, move _5) -> [return: bb2, unwind unreachable]; // scope 2 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL |
| 117 | ++ StorageDead(_5); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 118 | ++ _0 = unchecked_shl::<u16>(_3, move _14) -> [return: bb1, unwind unreachable]; // scope 2 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL |
39 | 119 | + // mir::Constant
|
40 | 120 | + // + span: $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
|
41 | 121 | + // + literal: Const { ty: unsafe extern "rust-intrinsic" fn(u16, u16) -> u16 {unchecked_shl::<u16>}, val: Value(<ZST>) }
|
42 |
| -+ } |
43 |
| -+ |
44 |
| -+ bb2: { |
45 |
| -+ StorageDead(_5); // scope 2 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL |
46 |
| - StorageDead(_4); // scope 0 at $DIR/unchecked_shifts.rs:+1:22: +1:23 |
47 |
| - StorageDead(_3); // scope 0 at $DIR/unchecked_shifts.rs:+1:22: +1:23 |
48 |
| - return; // scope 0 at $DIR/unchecked_shifts.rs:+2:2: +2:2 |
49 | 122 | }
|
50 | 123 | }
|
51 | 124 |
|
0 commit comments