mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +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_ptr.rs:16: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_ptr.rs:17: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_ptr.rs:25:24
|
||
|
|
|
||
|
LL | x.store(other_ptr, Ordering::Acquire);
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
|
||
|
|
||
|
error: atomic stores cannot have `Acquire` and `AcqRel` ordering
|
||
|
--> $DIR/atomic_ordering_ptr.rs:26:24
|
||
|
|
|
||
|
LL | x.store(other_ptr, Ordering::AcqRel);
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
|
||
|
|
||
|
error: aborting due to 4 previous errors
|
||
|
|