about summary refs log tree commit diff
path: root/library/core/src/sync
diff options
context:
space:
mode:
authorwoppopo <woppopo@protonmail.com>2021-10-20 12:04:58 +0900
committerwoppopo <woppopo@protonmail.com>2021-10-20 12:04:58 +0900
commit2fc780638e069155c87555da10ff234d1018fcaa (patch)
tree6d8edf420149984a0fa7120ec69c2baaced01e06 /library/core/src/sync
parent42983a28ab3c70728da7a9b932b667c978dd898d (diff)
downloadrust-2fc780638e069155c87555da10ff234d1018fcaa.tar.gz
rust-2fc780638e069155c87555da10ff234d1018fcaa.zip
Make `From` impls of NonZero integer const.
I also changed the feature gate added to `From` impls of Atomic integer to `const_num_from_num` from `const_convert`.
Diffstat (limited to 'library/core/src/sync')
-rw-r--r--library/core/src/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
index 0915dcffe6e..1dd3b2d8e3c 100644
--- a/library/core/src/sync/atomic.rs
+++ b/library/core/src/sync/atomic.rs
@@ -1365,7 +1365,7 @@ macro_rules! atomic_int {
         }
 
         #[$stable_from]
-        #[rustc_const_unstable(feature = "const_convert", issue = "88674")]
+        #[rustc_const_unstable(feature = "const_num_from_num", issue = "87852")]
         impl const From<$int_type> for $atomic_type {
             #[doc = concat!("Converts an `", stringify!($int_type), "` into an `", stringify!($atomic_type), "`.")]
             #[inline]