mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
feat(core): Make unbounded_shl{l,r}
unstably const and remove rustc_allow_const_fn_unstable
This commit is contained in:
parent
2cf48eaebc
commit
f4dc7830ed
@ -1326,7 +1326,7 @@ macro_rules! int_impl {
|
||||
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
|
||||
/// ```
|
||||
#[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, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@ -1454,7 +1454,7 @@ macro_rules! int_impl {
|
||||
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
|
||||
/// ```
|
||||
#[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, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -1515,7 +1515,7 @@ macro_rules! uint_impl {
|
||||
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(129), 0);")]
|
||||
/// ```
|
||||
#[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, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@ -1641,7 +1641,7 @@ macro_rules! uint_impl {
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
|
||||
/// ```
|
||||
#[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, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user