1 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
2 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:26:57
4 LL | let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::AcqRel);
5 | ^^^^^^^^^^^^^^^^ invalid failure ordering
7 = help: consider using `Acquire` or `Relaxed` failure ordering instead
8 = note: `#[deny(invalid_atomic_ordering)]` on by default
10 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
11 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:28:57
13 LL | let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::AcqRel);
14 | ^^^^^^^^^^^^^^^^ invalid failure ordering
16 = help: consider using `Acquire` or `Relaxed` failure ordering instead
18 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
19 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:30:57
21 LL | let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::AcqRel);
22 | ^^^^^^^^^^^^^^^^ invalid failure ordering
24 = help: consider using `Acquire` or `Relaxed` failure ordering instead
26 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
27 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:32:56
29 LL | let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::AcqRel);
30 | ^^^^^^^^^^^^^^^^ invalid failure ordering
32 = help: consider using `Acquire` or `Relaxed` failure ordering instead
34 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
35 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:34:56
37 LL | let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::AcqRel);
38 | ^^^^^^^^^^^^^^^^ invalid failure ordering
40 = help: consider using `Acquire` or `Relaxed` failure ordering instead
42 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
43 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:38:57
45 LL | let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::Release);
46 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
48 = help: consider using `Acquire` or `Relaxed` failure ordering instead
50 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
51 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:40:57
53 LL | let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::Release);
54 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
56 = help: consider using `Acquire` or `Relaxed` failure ordering instead
58 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
59 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:42:57
61 LL | let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::Release);
62 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
64 = help: consider using `Acquire` or `Relaxed` failure ordering instead
66 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
67 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:44:56
69 LL | let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::Release);
70 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
72 = help: consider using `Acquire` or `Relaxed` failure ordering instead
74 error: `compare_exchange`'s failure ordering may not be `Release` or `AcqRel`, since a failed `compare_exchange` does not result in a write
75 --> $DIR/lint-invalid-atomic-ordering-exchange.rs:46:56
77 LL | let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::Release);
78 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
80 = help: consider using `Acquire` or `Relaxed` failure ordering instead
82 error: aborting due to 10 previous errors