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