@@ -944,6 +944,7 @@ macro_rules! atomic_int {
944944 $stable_cxchg: meta,
945945 $stable_debug: meta,
946946 $stable_access: meta,
947+ $stable_from: meta,
947948 $s_int_type: expr, $int_ref: expr,
948949 $int_type: ident $atomic_type: ident $atomic_init: ident) => {
949950 /// An integer type which can be safely shared between threads.
@@ -978,7 +979,7 @@ macro_rules! atomic_int {
978979 }
979980 }
980981
981- #[ stable ( feature = "atomic_from" , since = "1.23.0" ) ]
982+ #[ $stable_from ]
982983 impl From <$int_type> for $atomic_type {
983984 #[ inline]
984985 fn from( v: $int_type) -> Self { Self :: new( v) }
@@ -1375,6 +1376,7 @@ atomic_int! {
13751376 unstable( feature = "integer_atomics" , issue = "32976" ) ,
13761377 unstable( feature = "integer_atomics" , issue = "32976" ) ,
13771378 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1379+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
13781380 "i8" , "../../../std/primitive.i8.html" ,
13791381 i8 AtomicI8 ATOMIC_I8_INIT
13801382}
@@ -1384,6 +1386,7 @@ atomic_int! {
13841386 unstable( feature = "integer_atomics" , issue = "32976" ) ,
13851387 unstable( feature = "integer_atomics" , issue = "32976" ) ,
13861388 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1389+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
13871390 "u8" , "../../../std/primitive.u8.html" ,
13881391 u8 AtomicU8 ATOMIC_U8_INIT
13891392}
@@ -1393,6 +1396,7 @@ atomic_int! {
13931396 unstable( feature = "integer_atomics" , issue = "32976" ) ,
13941397 unstable( feature = "integer_atomics" , issue = "32976" ) ,
13951398 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1399+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
13961400 "i16" , "../../../std/primitive.i16.html" ,
13971401 i16 AtomicI16 ATOMIC_I16_INIT
13981402}
@@ -1402,6 +1406,7 @@ atomic_int! {
14021406 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14031407 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14041408 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1409+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
14051410 "u16" , "../../../std/primitive.u16.html" ,
14061411 u16 AtomicU16 ATOMIC_U16_INIT
14071412}
@@ -1411,6 +1416,7 @@ atomic_int! {
14111416 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14121417 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14131418 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1419+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
14141420 "i32" , "../../../std/primitive.i32.html" ,
14151421 i32 AtomicI32 ATOMIC_I32_INIT
14161422}
@@ -1420,6 +1426,7 @@ atomic_int! {
14201426 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14211427 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14221428 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1429+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
14231430 "u32" , "../../../std/primitive.u32.html" ,
14241431 u32 AtomicU32 ATOMIC_U32_INIT
14251432}
@@ -1429,6 +1436,7 @@ atomic_int! {
14291436 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14301437 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14311438 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1439+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
14321440 "i64" , "../../../std/primitive.i64.html" ,
14331441 i64 AtomicI64 ATOMIC_I64_INIT
14341442}
@@ -1438,6 +1446,7 @@ atomic_int! {
14381446 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14391447 unstable( feature = "integer_atomics" , issue = "32976" ) ,
14401448 unstable( feature = "integer_atomics" , issue = "32976" ) ,
1449+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
14411450 "u64" , "../../../std/primitive.u64.html" ,
14421451 u64 AtomicU64 ATOMIC_U64_INIT
14431452}
@@ -1447,6 +1456,7 @@ atomic_int!{
14471456 stable( feature = "extended_compare_and_swap" , since = "1.10.0" ) ,
14481457 stable( feature = "atomic_debug" , since = "1.3.0" ) ,
14491458 stable( feature = "atomic_access" , since = "1.15.0" ) ,
1459+ stable( feature = "atomic_from" , since = "1.23.0" ) ,
14501460 "isize" , "../../../std/primitive.isize.html" ,
14511461 isize AtomicIsize ATOMIC_ISIZE_INIT
14521462}
@@ -1456,6 +1466,7 @@ atomic_int!{
14561466 stable( feature = "extended_compare_and_swap" , since = "1.10.0" ) ,
14571467 stable( feature = "atomic_debug" , since = "1.3.0" ) ,
14581468 stable( feature = "atomic_access" , since = "1.15.0" ) ,
1469+ stable( feature = "atomic_from" , since = "1.23.0" ) ,
14591470 "usize" , "../../../std/primitive.usize.html" ,
14601471 usize AtomicUsize ATOMIC_USIZE_INIT
14611472}
0 commit comments