From 6dfe144bdd4413ac55cbb2ad2edfb1daa0c4bf15 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Mon, 29 Jun 2020 10:28:39 +0200 Subject: stabilize const_nonzero_int_methods --- 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 d36da90f2ad..72bc13c8b93 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -79,7 +79,8 @@ assert_eq!(size_of::>(), size_of::<", s /// Creates a non-zero if the given value is not zero. #[$stability] - #[rustc_const_unstable(feature = "const_nonzero_int_methods", issue = "53718")] + #[rustc_const_stable(feature = "const_nonzero_int_methods", since = "1.46.0")] + #[cfg_attr(bootstrap, allow_internal_unstable(const_if_match))] #[inline] pub const fn new(n: $Int) -> Option { if n != 0 { -- cgit 1.4.1-3-g733a5