mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 18:13:36 +00:00
20 lines
647 B
Text
20 lines
647 B
Text
|
error: memory fences cannot have `Relaxed` ordering
|
||
|
--> $DIR/atomic_ordering_fence.rs:13:11
|
||
|
|
|
||
|
LL | fence(Ordering::Relaxed);
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D clippy::invalid-atomic-ordering` implied by `-D warnings`
|
||
|
= help: consider using ordering modes `Acquire`, `Release`, `AcqRel` or `SeqCst`
|
||
|
|
||
|
error: memory fences cannot have `Relaxed` ordering
|
||
|
--> $DIR/atomic_ordering_fence.rs:19:20
|
||
|
|
|
||
|
LL | compiler_fence(Ordering::Relaxed);
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using ordering modes `Acquire`, `Release`, `AcqRel` or `SeqCst`
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|