2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:20:47
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::AcqRel, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2020-12-02 15:16:12 -08:00
|
|
|
= note: `#[deny(invalid_atomic_ordering)]` on by default
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:22:47
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::AcqRel, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:24:47
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Release, Ordering::AcqRel, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:26:46
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::AcqRel, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:28:46
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::SeqCst, Ordering::AcqRel, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:32:47
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::Release, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:34:47
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::Release, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:36:47
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Release, Ordering::Release, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:38:46
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::Release, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write
|
2020-12-02 15:16:12 -08:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:40:46
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::SeqCst, Ordering::Release, |old| Some(old + 1));
|
2022-05-25 11:49:02 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ invalid failure ordering
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
= help: consider using `Acquire` or `Relaxed` failure ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s success ordering must be at least as strong as its failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:44:28
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Release, Ordering::Acquire, |old| Some(old + 1));
|
2022-06-22 20:03:39 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ ----------------- `Acquire` failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
| |
|
2022-06-22 20:03:39 +02:00
|
|
|
| `Release` success ordering
|
|
|
|
| help: consider using `AcqRel` success ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s success ordering must be at least as strong as its failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:46:28
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Release, Ordering::SeqCst, |old| Some(old + 1));
|
2022-06-22 20:03:39 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
| |
|
2022-06-22 20:03:39 +02:00
|
|
|
| `Release` success ordering
|
|
|
|
| help: consider using `SeqCst` success ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s success ordering must be at least as strong as its failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:50:28
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::SeqCst, |old| Some(old + 1));
|
2022-06-22 20:03:39 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
| |
|
2022-06-22 20:03:39 +02:00
|
|
|
| `Relaxed` success ordering
|
|
|
|
| help: consider using `SeqCst` success ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s success ordering must be at least as strong as its failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:52:28
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::Acquire, |old| Some(old + 1));
|
2022-06-22 20:03:39 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ ----------------- `Acquire` failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
| |
|
2022-06-22 20:03:39 +02:00
|
|
|
| `Relaxed` success ordering
|
|
|
|
| help: consider using `Acquire` success ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s success ordering must be at least as strong as its failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:56:28
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::SeqCst, |old| Some(old + 1));
|
2022-06-22 20:03:39 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
| |
|
2022-06-22 20:03:39 +02:00
|
|
|
| `Acquire` success ordering
|
|
|
|
| help: consider using `SeqCst` success ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
2022-06-22 20:03:39 +02:00
|
|
|
error: `fetch_update`'s success ordering must be at least as strong as its failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:58:28
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
|
LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::SeqCst, |old| Some(old + 1));
|
2022-06-22 20:03:39 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
|
2022-05-25 11:49:02 +02:00
|
|
|
| |
|
2022-06-22 20:03:39 +02:00
|
|
|
| `AcqRel` success ordering
|
|
|
|
| help: consider using `SeqCst` success ordering instead
|
2020-09-09 14:12:14 -07:00
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
|
|
|
|