Commit 62a8997
authored
Rollup merge of rust-lang#132445 - RalfJung:const-unchecked-shifts, r=tgross35
Cleanup attributes around unchecked shifts and unchecked negation in const
The underlying intrinsic is marked as "safe to expose on stable", so we shouldn't need any `rustc_allow_const_fn_unstable(unchecked_shifts)` anywhere. However, bootstrap rustc doesn't yet have the new const stability checks, so these changes only apply under `cfg(not(bootstrap))`.File tree
5 files changed
+16
-20
lines changed- library/core/src
- num
- ptr
5 files changed
+16
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
1227 | 1227 | | |
1228 | 1228 | | |
1229 | 1229 | | |
1230 | | - | |
1231 | | - | |
| 1230 | + | |
1232 | 1231 | | |
1233 | 1232 | | |
1234 | 1233 | | |
| |||
1294 | 1293 | | |
1295 | 1294 | | |
1296 | 1295 | | |
1297 | | - | |
| 1296 | + | |
1298 | 1297 | | |
1299 | 1298 | | |
1300 | 1299 | | |
| |||
1353 | 1352 | | |
1354 | 1353 | | |
1355 | 1354 | | |
1356 | | - | |
1357 | | - | |
| 1355 | + | |
1358 | 1356 | | |
1359 | 1357 | | |
1360 | 1358 | | |
| |||
1420 | 1418 | | |
1421 | 1419 | | |
1422 | 1420 | | |
1423 | | - | |
| 1421 | + | |
1424 | 1422 | | |
1425 | 1423 | | |
1426 | 1424 | | |
| |||
2151 | 2149 | | |
2152 | 2150 | | |
2153 | 2151 | | |
2154 | | - | |
| 2152 | + | |
2155 | 2153 | | |
2156 | 2154 | | |
2157 | 2155 | | |
| |||
2181 | 2179 | | |
2182 | 2180 | | |
2183 | 2181 | | |
2184 | | - | |
| 2182 | + | |
2185 | 2183 | | |
2186 | 2184 | | |
2187 | 2185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1416 | 1416 | | |
1417 | 1417 | | |
1418 | 1418 | | |
1419 | | - | |
1420 | | - | |
| 1419 | + | |
1421 | 1420 | | |
1422 | 1421 | | |
1423 | 1422 | | |
| |||
1483 | 1482 | | |
1484 | 1483 | | |
1485 | 1484 | | |
1486 | | - | |
| 1485 | + | |
1487 | 1486 | | |
1488 | 1487 | | |
1489 | 1488 | | |
| |||
1542 | 1541 | | |
1543 | 1542 | | |
1544 | 1543 | | |
1545 | | - | |
1546 | | - | |
| 1544 | + | |
1547 | 1545 | | |
1548 | 1546 | | |
1549 | 1547 | | |
| |||
1609 | 1607 | | |
1610 | 1608 | | |
1611 | 1609 | | |
1612 | | - | |
| 1610 | + | |
1613 | 1611 | | |
1614 | 1612 | | |
1615 | 1613 | | |
| |||
2132 | 2130 | | |
2133 | 2131 | | |
2134 | 2132 | | |
2135 | | - | |
| 2133 | + | |
2136 | 2134 | | |
2137 | 2135 | | |
2138 | 2136 | | |
| |||
2165 | 2163 | | |
2166 | 2164 | | |
2167 | 2165 | | |
2168 | | - | |
| 2166 | + | |
2169 | 2167 | | |
2170 | 2168 | | |
2171 | 2169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
| 1088 | + | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| |||
0 commit comments