|
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 | 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 |
15 |
| -+ let mut _7: u32; // in scope 1 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
16 | 14 | + scope 2 {
|
17 | 15 | + scope 3 (inlined core::num::<impl u16>::unchecked_shl::conv) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL
|
18 |
| -+ debug x => _7; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
19 |
| -+ let mut _8: std::option::Option<u16>; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
20 |
| -+ let mut _9: std::result::Result<u16, std::num::TryFromIntError>; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 16 | ++ debug x => _4; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 17 | ++ let mut _6: std::option::Option<u16>; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 18 | ++ let mut _7: std::result::Result<u16, std::num::TryFromIntError>; // in scope 3 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
21 | 19 | + scope 4 {
|
22 | 20 | + scope 5 (inlined <u32 as TryInto<u16>>::try_into) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL
|
23 |
| -+ debug self => _7; // in scope 5 at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 21 | ++ debug self => _4; // in scope 5 at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
24 | 22 | + scope 6 (inlined convert::num::<impl TryFrom<u32> for u16>::try_from) { // at $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
25 |
| -+ debug u => _7; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
26 |
| -+ let mut _10: bool; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
27 |
| -+ let mut _11: u32; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
28 |
| -+ let mut _12: u16; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 23 | ++ debug u => _4; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 24 | ++ let mut _8: bool; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 25 | ++ let mut _9: u32; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 26 | ++ let mut _10: u16; // in scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
29 | 27 | + }
|
30 | 28 | + }
|
31 | 29 | + scope 7 (inlined Result::<u16, TryFromIntError>::ok) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL
|
32 |
| -+ debug self => _9; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
33 |
| -+ let mut _13: isize; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
34 |
| -+ let _14: u16; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 30 | ++ debug self => _7; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 31 | ++ let mut _11: isize; // 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 |
35 | 33 | + scope 8 {
|
36 |
| -+ debug x => _14; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 34 | ++ debug x => _12; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
37 | 35 | + }
|
38 | 36 | + }
|
39 | 37 | + scope 9 (inlined #[track_caller] Option::<u16>::unwrap_unchecked) { // at $SRC_DIR/core/src/num/mod.rs:LL:COL
|
40 |
| -+ debug self => _8; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
41 |
| -+ let mut _15: &std::option::Option<u16>; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
42 |
| -+ let mut _16: isize; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 38 | ++ debug self => _6; // 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 mut _14: isize; // in scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
43 | 41 | + scope 10 {
|
44 | 42 | + debug val => _5; // in scope 10 at $SRC_DIR/core/src/option.rs:LL:COL
|
45 | 43 | + }
|
|
52 | 50 | + }
|
53 | 51 | + }
|
54 | 52 | + scope 12 (inlined Option::<u16>::is_some) { // at $SRC_DIR/core/src/option.rs:LL:COL
|
55 |
| -+ debug self => _15; // in scope 12 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 |
56 | 54 | + }
|
57 | 55 | + }
|
58 | 56 | + }
|
|
70 | 68 | - // + span: $DIR/unchecked_shifts.rs:11:7: 11:20
|
71 | 69 | - // + literal: Const { ty: unsafe fn(u16, u32) -> u16 {core::num::<impl u16>::unchecked_shl}, val: Value(<ZST>) }
|
72 | 70 | + StorageLive(_5); // 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 = (_4,); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
75 |
| -+ StorageLive(_7); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
76 |
| -+ _7 = move (_6.0: u32); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
77 |
| -+ StorageLive(_8); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
78 |
| -+ StorageLive(_9); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
79 |
| -+ StorageLive(_10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
80 |
| -+ StorageLive(_11); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
81 |
| -+ _11 = const 65535_u32; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
82 |
| -+ _10 = Gt(_7, move _11); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
83 |
| -+ StorageDead(_11); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
84 |
| -+ switchInt(move _10) -> [0: bb3, otherwise: bb2]; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 71 | ++ StorageLive(_6); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 72 | ++ StorageLive(_7); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 73 | ++ StorageLive(_8); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 74 | ++ StorageLive(_9); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 75 | ++ _9 = const 65535_u32; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 76 | ++ _8 = Gt(_4, move _9); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 77 | ++ StorageDead(_9); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 78 | ++ switchInt(move _8) -> [0: bb3, otherwise: bb2]; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
85 | 79 | }
|
86 | 80 |
|
87 | 81 | bb1: {
|
|
92 | 86 | + }
|
93 | 87 | +
|
94 | 88 | + bb2: {
|
95 |
| -+ _9 = Result::<u16, TryFromIntError>::Err(const TryFromIntError(())); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 89 | ++ _7 = Result::<u16, TryFromIntError>::Err(const TryFromIntError(())); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
96 | 90 | + // mir::Constant
|
97 | 91 | + // + span: no-location
|
98 | 92 | + // + literal: Const { ty: TryFromIntError, val: Value(<ZST>) }
|
99 | 93 | + goto -> bb4; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL
|
100 | 94 | + }
|
101 | 95 | +
|
102 | 96 | + bb3: {
|
103 |
| -+ StorageLive(_12); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
104 |
| -+ _12 = _7 as u16 (IntToInt); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
105 |
| -+ _9 = Result::<u16, TryFromIntError>::Ok(move _12); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
106 |
| -+ StorageDead(_12); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 97 | ++ StorageLive(_10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 98 | ++ _10 = _4 as u16 (IntToInt); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 99 | ++ _7 = Result::<u16, TryFromIntError>::Ok(move _10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 100 | ++ StorageDead(_10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
107 | 101 | + goto -> bb4; // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL
|
108 | 102 | + }
|
109 | 103 | +
|
110 | 104 | + bb4: {
|
111 |
| -+ StorageDead(_10); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
112 |
| -+ StorageLive(_14); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
113 |
| -+ _13 = discriminant(_9); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
114 |
| -+ switchInt(move _13) -> [0: bb7, 1: bb5, otherwise: bb6]; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 105 | ++ StorageDead(_8); // scope 6 at $SRC_DIR/core/src/convert/num.rs:LL:COL |
| 106 | ++ StorageLive(_12); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 107 | ++ _11 = discriminant(_7); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 108 | ++ switchInt(move _11) -> [0: bb7, 1: bb5, otherwise: bb6]; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
115 | 109 | + }
|
116 | 110 | +
|
117 | 111 | + bb5: {
|
118 |
| -+ _8 = Option::<u16>::None; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 112 | ++ _6 = Option::<u16>::None; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
119 | 113 | + goto -> bb8; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL
|
120 | 114 | + }
|
121 | 115 | +
|
|
124 | 118 | + }
|
125 | 119 | +
|
126 | 120 | + bb7: {
|
127 |
| -+ _14 = move ((_9 as Ok).0: u16); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
128 |
| -+ _8 = Option::<u16>::Some(move _14); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 121 | ++ _12 = move ((_7 as Ok).0: u16); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 122 | ++ _6 = Option::<u16>::Some(move _12); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
129 | 123 | + goto -> bb8; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL
|
130 | 124 | + }
|
131 | 125 | +
|
132 | 126 | + bb8: {
|
133 |
| -+ StorageDead(_14); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
134 |
| -+ StorageDead(_9); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
135 |
| -+ StorageLive(_15); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
136 |
| -+ _16 = discriminant(_8); // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
137 |
| -+ switchInt(move _16) -> [1: bb9, otherwise: bb6]; // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 127 | ++ StorageDead(_12); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 128 | ++ StorageDead(_7); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 129 | ++ StorageLive(_13); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 130 | ++ _14 = discriminant(_6); // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 131 | ++ switchInt(move _14) -> [1: bb9, otherwise: bb6]; // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
138 | 132 | + }
|
139 | 133 | +
|
140 | 134 | + bb9: {
|
141 |
| -+ _5 = move ((_8 as Some).0: u16); // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
142 |
| -+ StorageDead(_15); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
143 |
| -+ StorageDead(_8); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
144 |
| -+ StorageDead(_7); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
145 |
| -+ StorageDead(_6); // scope 2 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 135 | ++ _5 = move ((_6 as Some).0: u16); // scope 9 at $SRC_DIR/core/src/option.rs:LL:COL |
| 136 | ++ StorageDead(_13); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
| 137 | ++ StorageDead(_6); // scope 4 at $SRC_DIR/core/src/num/mod.rs:LL:COL |
146 | 138 | + _0 = unchecked_shl::<u16>(_3, move _5) -> [return: bb1, unwind unreachable]; // scope 2 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
|
147 | 139 | + // mir::Constant
|
148 | 140 | + // + span: $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
|
|
0 commit comments