@@ -8,13 +8,13 @@ use core::fmt;
8
8
use core:: mem;
9
9
use core:: sync:: atomic:: Ordering ;
10
10
11
- #[ cfg( not( loom_crossbeam ) ) ]
11
+ #[ cfg( not( crossbeam_loom ) ) ]
12
12
use core:: ptr;
13
13
14
14
#[ cfg( feature = "std" ) ]
15
15
use std:: panic:: { RefUnwindSafe , UnwindSafe } ;
16
16
17
- #[ cfg( not( loom_crossbeam ) ) ]
17
+ #[ cfg( not( crossbeam_loom ) ) ]
18
18
use super :: seq_lock:: SeqLock ;
19
19
20
20
/// A thread-safe mutable memory location.
@@ -499,31 +499,31 @@ macro_rules! impl_arithmetic {
499
499
500
500
#[ cfg( has_atomic_u8) ]
501
501
impl_arithmetic ! ( u8 , atomic:: AtomicU8 , "let a = AtomicCell::new(7u8);" ) ;
502
- #[ cfg( all( has_atomic_u8, not( loom_crossbeam ) ) ) ]
502
+ #[ cfg( all( has_atomic_u8, not( crossbeam_loom ) ) ) ]
503
503
impl_arithmetic ! ( i8 , atomic:: AtomicI8 , "let a = AtomicCell::new(7i8);" ) ;
504
504
#[ cfg( has_atomic_u16) ]
505
505
impl_arithmetic ! ( u16 , atomic:: AtomicU16 , "let a = AtomicCell::new(7u16);" ) ;
506
- #[ cfg( all( has_atomic_u16, not( loom_crossbeam ) ) ) ]
506
+ #[ cfg( all( has_atomic_u16, not( crossbeam_loom ) ) ) ]
507
507
impl_arithmetic ! ( i16 , atomic:: AtomicI16 , "let a = AtomicCell::new(7i16);" ) ;
508
508
#[ cfg( has_atomic_u32) ]
509
509
impl_arithmetic ! ( u32 , atomic:: AtomicU32 , "let a = AtomicCell::new(7u32);" ) ;
510
- #[ cfg( all( has_atomic_u32, not( loom_crossbeam ) ) ) ]
510
+ #[ cfg( all( has_atomic_u32, not( crossbeam_loom ) ) ) ]
511
511
impl_arithmetic ! ( i32 , atomic:: AtomicI32 , "let a = AtomicCell::new(7i32);" ) ;
512
512
#[ cfg( has_atomic_u64) ]
513
513
impl_arithmetic ! ( u64 , atomic:: AtomicU64 , "let a = AtomicCell::new(7u64);" ) ;
514
- #[ cfg( all( has_atomic_u64, not( loom_crossbeam ) ) ) ]
514
+ #[ cfg( all( has_atomic_u64, not( crossbeam_loom ) ) ) ]
515
515
impl_arithmetic ! ( i64 , atomic:: AtomicI64 , "let a = AtomicCell::new(7i64);" ) ;
516
- #[ cfg( all( has_atomic_u128, not( loom_crossbeam ) ) ) ]
516
+ #[ cfg( all( has_atomic_u128, not( crossbeam_loom ) ) ) ]
517
517
impl_arithmetic ! ( u128 , atomic:: AtomicU128 , "let a = AtomicCell::new(7u128);" ) ;
518
- #[ cfg( all( has_atomic_u128, not( loom_crossbeam ) ) ) ]
518
+ #[ cfg( all( has_atomic_u128, not( crossbeam_loom ) ) ) ]
519
519
impl_arithmetic ! ( i128 , atomic:: AtomicI128 , "let a = AtomicCell::new(7i128);" ) ;
520
520
521
521
impl_arithmetic ! (
522
522
usize ,
523
523
atomic:: AtomicUsize ,
524
524
"let a = AtomicCell::new(7usize);"
525
525
) ;
526
- #[ cfg( not( loom_crossbeam ) ) ]
526
+ #[ cfg( not( crossbeam_loom ) ) ]
527
527
impl_arithmetic ! (
528
528
isize ,
529
529
atomic:: AtomicIsize ,
@@ -632,7 +632,7 @@ const fn can_transmute<A, B>() -> bool {
632
632
/// scalability.
633
633
#[ inline]
634
634
#[ must_use]
635
- #[ cfg( not( loom_crossbeam ) ) ]
635
+ #[ cfg( not( crossbeam_loom ) ) ]
636
636
fn lock ( addr : usize ) -> & ' static SeqLock {
637
637
// The number of locks is a prime number because we want to make sure `addr % LEN` gets
638
638
// dispersed across all locks.
@@ -820,9 +820,9 @@ macro_rules! atomic {
820
820
#[ cfg( has_atomic_u128) ]
821
821
atomic!( @check, $t, atomic:: AtomicU128 , $a, $atomic_op) ;
822
822
823
- #[ cfg( loom_crossbeam ) ]
823
+ #[ cfg( crossbeam_loom ) ]
824
824
unimplemented!( "loom does not support non-atomic atomic ops" ) ;
825
- #[ cfg( not( loom_crossbeam ) ) ]
825
+ #[ cfg( not( crossbeam_loom ) ) ]
826
826
break $fallback_op;
827
827
}
828
828
} ;
0 commit comments