feat(core): Make unbounded_shl{l,r} unstably const and remove rustc_allow_const_fn_unstable
This commit is contained in:
@@ -1326,7 +1326,7 @@ macro_rules! int_impl {
|
|||||||
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
|
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
||||||
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
|
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
|
||||||
#[must_use = "this returns the result of the operation, \
|
#[must_use = "this returns the result of the operation, \
|
||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
@@ -1454,7 +1454,7 @@ macro_rules! int_impl {
|
|||||||
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
|
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
||||||
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
|
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
|
||||||
#[must_use = "this returns the result of the operation, \
|
#[must_use = "this returns the result of the operation, \
|
||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
@@ -1515,7 +1515,7 @@ macro_rules! uint_impl {
|
|||||||
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
|
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
||||||
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
|
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
|
||||||
#[must_use = "this returns the result of the operation, \
|
#[must_use = "this returns the result of the operation, \
|
||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
@@ -1641,7 +1641,7 @@ macro_rules! uint_impl {
|
|||||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
|
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
||||||
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
|
#[rustc_const_unstable(feature = "const_unbounded_shifts", issue = "129375")]
|
||||||
#[must_use = "this returns the result of the operation, \
|
#[must_use = "this returns the result of the operation, \
|
||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user