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