feat(core): Make unbounded_shl{l,r}
unstably const and remove `rust… · patricklam/verify-rust-std@3fd591e (original) (raw)
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1326,7 +1326,7 @@ macro_rules! int_impl { | ||
1326 | 1326 | #[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")] |
1327 | 1327 | /// ``` |
1328 | 1328 | #[unstable(feature = "unbounded_shifts", issue = "129375")] |
1329 | - #[rustc_allow_const_fn_unstable(unchecked_shifts)] | |
1329 | + #[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")] | |
1330 | 1330 | #[must_use = "this returns the result of the operation, \ |
1331 | 1331 | without modifying the original"] |
1332 | 1332 | #[inline] |
@@ -1454,7 +1454,7 @@ macro_rules! int_impl { | ||
1454 | 1454 | #[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")] |
1455 | 1455 | /// ``` |
1456 | 1456 | #[unstable(feature = "unbounded_shifts", issue = "129375")] |
1457 | - #[rustc_allow_const_fn_unstable(unchecked_shifts)] | |
1457 | + #[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")] | |
1458 | 1458 | #[must_use = "this returns the result of the operation, \ |
1459 | 1459 | without modifying the original"] |
1460 | 1460 | #[inline] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1515,7 +1515,7 @@ macro_rules! uint_impl { | ||
1515 | 1515 | #[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")] |
1516 | 1516 | /// ``` |
1517 | 1517 | #[unstable(feature = "unbounded_shifts", issue = "129375")] |
1518 | - #[rustc_allow_const_fn_unstable(unchecked_shifts)] | |
1518 | + #[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")] | |
1519 | 1519 | #[must_use = "this returns the result of the operation, \ |
1520 | 1520 | without modifying the original"] |
1521 | 1521 | #[inline] |
@@ -1641,7 +1641,7 @@ macro_rules! uint_impl { | ||
1641 | 1641 | #[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")] |
1642 | 1642 | /// ``` |
1643 | 1643 | #[unstable(feature = "unbounded_shifts", issue = "129375")] |
1644 | - #[rustc_allow_const_fn_unstable(unchecked_shifts)] | |
1644 | + #[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")] | |
1645 | 1645 | #[must_use = "this returns the result of the operation, \ |
1646 | 1646 | without modifying the original"] |
1647 | 1647 | #[inline] |