about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-29 18:37:47 +0800
committerGitHub <noreply@github.com>2017-11-29 18:37:47 +0800
commit0e78c29bea998081cb1880da9fa09e38d46d44a6 (patch)
tree3b4b2a5a57516705db3d1b752aa9864ef00f4e78 /src/libcore/num
parent6006c0f35fdcdaa25dfd2cf76438ca2bb5e37d4b (diff)
parent6c5f53e65ee5f022611033dbf58c42e26be7f93d (diff)
downloadrust-0e78c29bea998081cb1880da9fa09e38d46d44a6.tar.gz
rust-0e78c29bea998081cb1880da9fa09e38d46d44a6.zip
Rollup merge of #46287 - SimonSapin:stable-constness, r=aturon
Stabilize const-calling existing const-fns in std

Fixes #46038
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index a70694b0127..5b9dd4b1c69 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()
@@ -1290,7 +1288,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 }
 
@@ -1302,7 +1299,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 }