From 056d925167318636fcf975c8ffb81efebdc9bca3 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Mon, 29 Jun 2020 10:36:41 +0200 Subject: stabilize const_int_sign --- src/libcore/num/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libcore') diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index c4d574c5bc5..00860476d9c 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -2203,7 +2203,8 @@ assert_eq!((-10", stringify!($SelfT), ").signum(), -1);", $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_int_sign", issue = "53718")] + #[rustc_const_stable(feature = "const_int_sign", since = "1.46.0")] + #[cfg_attr(bootstrap, allow_internal_unstable(const_if_match))] #[inline] pub const fn signum(self) -> Self { match self { -- cgit 1.4.1-3-g733a5