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