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