diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-11-26 23:19:18 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2017-11-26 23:43:44 +0100 |
| commit | 6c5f53e65ee5f022611033dbf58c42e26be7f93d (patch) | |
| tree | 9da24c4b5df8b773ff53d9fa207fdeb3aebdea42 /src/libcore/num | |
| parent | 827cb0d61e22eb6d5c9c5e8e8d05b07108a9968b (diff) | |
| download | rust-6c5f53e65ee5f022611033dbf58c42e26be7f93d.tar.gz rust-6c5f53e65ee5f022611033dbf58c42e26be7f93d.zip | |
Stabilize const-calling existing const-fns in std
Fixes #46038
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 1230066e2b3..bfa00f895c0 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -110,7 +110,6 @@ macro_rules! int_impl { /// assert_eq!(i8::min_value(), -128); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_min_value")] #[inline] pub const fn min_value() -> Self { !0 ^ ((!0 as $UnsignedT) >> 1) as Self @@ -124,7 +123,6 @@ macro_rules! int_impl { /// assert_eq!(i8::max_value(), 127); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_max_value")] #[inline] pub const fn max_value() -> Self { !Self::min_value() @@ -1283,7 +1281,6 @@ macro_rules! uint_impl { /// assert_eq!(u8::min_value(), 0); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_min_value")] #[inline] pub const fn min_value() -> Self { 0 } @@ -1295,7 +1292,6 @@ macro_rules! uint_impl { /// assert_eq!(u8::max_value(), 255); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_max_value")] #[inline] pub const fn max_value() -> Self { !0 } |
