@@ -944,6 +944,7 @@ macro_rules! atomic_int {
944
944
$stable_cxchg: meta,
945
945
$stable_debug: meta,
946
946
$stable_access: meta,
947
+ $stable_from: meta,
947
948
$s_int_type: expr, $int_ref: expr,
948
949
$int_type: ident $atomic_type: ident $atomic_init: ident) => {
949
950
/// An integer type which can be safely shared between threads.
@@ -978,7 +979,7 @@ macro_rules! atomic_int {
978
979
}
979
980
}
980
981
981
- #[ stable ( feature = "atomic_from" , since = "1.23.0" ) ]
982
+ #[ $stable_from ]
982
983
impl From <$int_type> for $atomic_type {
983
984
#[ inline]
984
985
fn from( v: $int_type) -> Self { Self :: new( v) }
@@ -1375,6 +1376,7 @@ atomic_int! {
1375
1376
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1376
1377
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1377
1378
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1379
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1378
1380
"i8" , "../../../std/primitive.i8.html" ,
1379
1381
i8 AtomicI8 ATOMIC_I8_INIT
1380
1382
}
@@ -1384,6 +1386,7 @@ atomic_int! {
1384
1386
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1385
1387
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1386
1388
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1389
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1387
1390
"u8" , "../../../std/primitive.u8.html" ,
1388
1391
u8 AtomicU8 ATOMIC_U8_INIT
1389
1392
}
@@ -1393,6 +1396,7 @@ atomic_int! {
1393
1396
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1394
1397
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1395
1398
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1399
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1396
1400
"i16" , "../../../std/primitive.i16.html" ,
1397
1401
i16 AtomicI16 ATOMIC_I16_INIT
1398
1402
}
@@ -1402,6 +1406,7 @@ atomic_int! {
1402
1406
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1403
1407
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1404
1408
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1409
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1405
1410
"u16" , "../../../std/primitive.u16.html" ,
1406
1411
u16 AtomicU16 ATOMIC_U16_INIT
1407
1412
}
@@ -1411,6 +1416,7 @@ atomic_int! {
1411
1416
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1412
1417
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1413
1418
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1419
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1414
1420
"i32" , "../../../std/primitive.i32.html" ,
1415
1421
i32 AtomicI32 ATOMIC_I32_INIT
1416
1422
}
@@ -1420,6 +1426,7 @@ atomic_int! {
1420
1426
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1421
1427
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1422
1428
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1429
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1423
1430
"u32" , "../../../std/primitive.u32.html" ,
1424
1431
u32 AtomicU32 ATOMIC_U32_INIT
1425
1432
}
@@ -1429,6 +1436,7 @@ atomic_int! {
1429
1436
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1430
1437
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1431
1438
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1439
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1432
1440
"i64" , "../../../std/primitive.i64.html" ,
1433
1441
i64 AtomicI64 ATOMIC_I64_INIT
1434
1442
}
@@ -1438,6 +1446,7 @@ atomic_int! {
1438
1446
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1439
1447
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1440
1448
unstable( feature = "integer_atomics" , issue = "32976" ) ,
1449
+ unstable( feature = "integer_atomics" , issue = "32976" ) ,
1441
1450
"u64" , "../../../std/primitive.u64.html" ,
1442
1451
u64 AtomicU64 ATOMIC_U64_INIT
1443
1452
}
@@ -1447,6 +1456,7 @@ atomic_int!{
1447
1456
stable( feature = "extended_compare_and_swap" , since = "1.10.0" ) ,
1448
1457
stable( feature = "atomic_debug" , since = "1.3.0" ) ,
1449
1458
stable( feature = "atomic_access" , since = "1.15.0" ) ,
1459
+ stable( feature = "atomic_from" , since = "1.23.0" ) ,
1450
1460
"isize" , "../../../std/primitive.isize.html" ,
1451
1461
isize AtomicIsize ATOMIC_ISIZE_INIT
1452
1462
}
@@ -1456,6 +1466,7 @@ atomic_int!{
1456
1466
stable( feature = "extended_compare_and_swap" , since = "1.10.0" ) ,
1457
1467
stable( feature = "atomic_debug" , since = "1.3.0" ) ,
1458
1468
stable( feature = "atomic_access" , since = "1.15.0" ) ,
1469
+ stable( feature = "atomic_from" , since = "1.23.0" ) ,
1459
1470
"usize" , "../../../std/primitive.usize.html" ,
1460
1471
usize AtomicUsize ATOMIC_USIZE_INIT
1461
1472
}
0 commit comments