fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
4.7 KiB83 linesraw
1error: `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   |
4LL |     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
10error: `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   |
13LL |     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
18error: `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   |
21LL |     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
26error: `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   |
29LL |     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
34error: `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   |
37LL |     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
42error: `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   |
45LL |     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
50error: `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   |
53LL |     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
58error: `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   |
61LL |     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
66error: `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   |
69LL |     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
74error: `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   |
77LL |     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
82error: aborting due to 10 previous errors
83