Skip to content

Commit 3fd591e

Browse files
committed
feat(core): Make unbounded_shl{l,r} unstably const and remove rustc_allow_const_fn_unstable
1 parent 5299ef1 commit 3fd591e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: core/src/num/int_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ macro_rules! int_impl {
13261326
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
13271327
/// ```
13281328
#[unstable(feature = "unbounded_shifts", issue = "129375")]
1329-
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
1329+
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
13301330
#[must_use = "this returns the result of the operation, \
13311331
without modifying the original"]
13321332
#[inline]
@@ -1454,7 +1454,7 @@ macro_rules! int_impl {
14541454
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
14551455
/// ```
14561456
#[unstable(feature = "unbounded_shifts", issue = "129375")]
1457-
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
1457+
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
14581458
#[must_use = "this returns the result of the operation, \
14591459
without modifying the original"]
14601460
#[inline]

Diff for: core/src/num/uint_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ macro_rules! uint_impl {
15151515
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
15161516
/// ```
15171517
#[unstable(feature = "unbounded_shifts", issue = "129375")]
1518-
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
1518+
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
15191519
#[must_use = "this returns the result of the operation, \
15201520
without modifying the original"]
15211521
#[inline]
@@ -1641,7 +1641,7 @@ macro_rules! uint_impl {
16411641
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
16421642
/// ```
16431643
#[unstable(feature = "unbounded_shifts", issue = "129375")]
1644-
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
1644+
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
16451645
#[must_use = "this returns the result of the operation, \
16461646
without modifying the original"]
16471647
#[inline]

0 commit comments

Comments
 (0)