]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-invalid-atomic-ordering-exchange.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / lint-invalid-atomic-ordering-exchange.stderr
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
3    |
4 LL |     let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::AcqRel);
5    |                                                         ^^^^^^^^^^^^^^^^ invalid failure ordering
6    |
7    = help: consider using `Acquire` or `Relaxed` failure ordering instead
8    = note: `#[deny(invalid_atomic_ordering)]` on by default
9
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
12    |
13 LL |     let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::AcqRel);
14    |                                                         ^^^^^^^^^^^^^^^^ invalid failure ordering
15    |
16    = help: consider using `Acquire` or `Relaxed` failure ordering instead
17
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
20    |
21 LL |     let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::AcqRel);
22    |                                                         ^^^^^^^^^^^^^^^^ invalid failure ordering
23    |
24    = help: consider using `Acquire` or `Relaxed` failure ordering instead
25
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
28    |
29 LL |     let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::AcqRel);
30    |                                                        ^^^^^^^^^^^^^^^^ invalid failure ordering
31    |
32    = help: consider using `Acquire` or `Relaxed` failure ordering instead
33
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
36    |
37 LL |     let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::AcqRel);
38    |                                                        ^^^^^^^^^^^^^^^^ invalid failure ordering
39    |
40    = help: consider using `Acquire` or `Relaxed` failure ordering instead
41
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
44    |
45 LL |     let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::Release);
46    |                                                         ^^^^^^^^^^^^^^^^^ invalid failure ordering
47    |
48    = help: consider using `Acquire` or `Relaxed` failure ordering instead
49
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
52    |
53 LL |     let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::Release);
54    |                                                         ^^^^^^^^^^^^^^^^^ invalid failure ordering
55    |
56    = help: consider using `Acquire` or `Relaxed` failure ordering instead
57
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
60    |
61 LL |     let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::Release);
62    |                                                         ^^^^^^^^^^^^^^^^^ invalid failure ordering
63    |
64    = help: consider using `Acquire` or `Relaxed` failure ordering instead
65
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
68    |
69 LL |     let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::Release);
70    |                                                        ^^^^^^^^^^^^^^^^^ invalid failure ordering
71    |
72    = help: consider using `Acquire` or `Relaxed` failure ordering instead
73
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
76    |
77 LL |     let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::Release);
78    |                                                        ^^^^^^^^^^^^^^^^^ invalid failure ordering
79    |
80    = help: consider using `Acquire` or `Relaxed` failure ordering instead
81
82 error: aborting due to 10 previous errors
83