mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
|
error: atomic loads cannot have `Release` and `AcqRel` ordering
|
||
|
--> $DIR/atomic_ordering_bool.rs:14:20
|
||
|
|
|
||
|
LL | let _ = x.load(Ordering::Release);
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D clippy::invalid-atomic-ordering` implied by `-D warnings`
|
||
|
= help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed`
|
||
|
|
||
|
error: atomic loads cannot have `Release` and `AcqRel` ordering
|
||
|
--> $DIR/atomic_ordering_bool.rs:15:20
|
||
|
|
|
||
|
LL | let _ = x.load(Ordering::AcqRel);
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed`
|
||
|
|
||
|
error: atomic stores cannot have `Acquire` and `AcqRel` ordering
|
||
|
--> $DIR/atomic_ordering_bool.rs:23:20
|
||
|
|
|
||
|
LL | x.store(false, Ordering::Acquire);
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
|
||
|
|
||
|
error: atomic stores cannot have `Acquire` and `AcqRel` ordering
|
||
|
--> $DIR/atomic_ordering_bool.rs:24:20
|
||
|
|
|
||
|
LL | x.store(false, Ordering::AcqRel);
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
|
||
|
|
||
|
error: aborting due to 4 previous errors
|
||
|
|