mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
131 lines
5.8 KiB
Text
131 lines
5.8 KiB
Text
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:21:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::AcqRel);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::invalid-atomic-ordering` implied by `-D warnings`
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:22:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::AcqRel);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:23:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::AcqRel);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:24:56
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::AcqRel);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:25:56
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::AcqRel);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:28:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::Release);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:29:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::Release);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:30:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::Release);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:31:56
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::Release);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:32:56
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::Release);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be stronger than the success ordering of `Release`
|
|
--> $DIR/atomic_ordering_exchange.rs:35:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::Acquire);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be stronger than the success ordering of `Release`
|
|
--> $DIR/atomic_ordering_exchange.rs:36:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::SeqCst);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be stronger than the success ordering of `Relaxed`
|
|
--> $DIR/atomic_ordering_exchange.rs:39:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::SeqCst);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be stronger than the success ordering of `Relaxed`
|
|
--> $DIR/atomic_ordering_exchange.rs:40:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::Acquire);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering mode `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be stronger than the success ordering of `Acquire`
|
|
--> $DIR/atomic_ordering_exchange.rs:43:57
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::SeqCst);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire` or `Relaxed` instead
|
|
|
|
error: compare_exchange's failure ordering may not be stronger than the success ordering of `AcqRel`
|
|
--> $DIR/atomic_ordering_exchange.rs:44:56
|
|
|
|
|
LL | let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::SeqCst);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using ordering modes `Acquire` or `Relaxed` instead
|
|
|
|
error: aborting due to 16 previous errors
|
|
|