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