|
1 | | -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 |
| 1 | +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 |
2 | 2 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:22:67 |
3 | 3 | | |
4 | 4 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering::AcqRel); |
5 | 5 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
6 | 6 | | |
7 | 7 | = note: `#[deny(invalid_atomic_ordering)]` on by default |
8 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 8 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
9 | 9 |
|
10 | | -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 |
| 10 | +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 |
11 | 11 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:24:67 |
12 | 12 | | |
13 | 13 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::AcqRel); |
14 | 14 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
15 | 15 | | |
16 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 16 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
17 | 17 |
|
18 | | -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 |
| 18 | +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 |
19 | 19 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:26:67 |
20 | 20 | | |
21 | 21 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::AcqRel); |
22 | 22 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
23 | 23 | | |
24 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 24 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
25 | 25 |
|
26 | | -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 |
| 26 | +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 |
27 | 27 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:28:66 |
28 | 28 | | |
29 | 29 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::AcqRel); |
30 | 30 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
31 | 31 | | |
32 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 32 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
33 | 33 |
|
34 | | -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 |
| 34 | +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 |
35 | 35 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:30:66 |
36 | 36 | | |
37 | 37 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::SeqCst, Ordering::AcqRel); |
38 | 38 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
39 | 39 | | |
40 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 40 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
41 | 41 |
|
42 | | -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 |
| 42 | +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 |
43 | 43 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:34:67 |
44 | 44 | | |
45 | 45 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Release); |
46 | 46 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
47 | 47 | | |
48 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 48 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
49 | 49 |
|
50 | | -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 |
| 50 | +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 |
51 | 51 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:36:67 |
52 | 52 | | |
53 | 53 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Acquire, Ordering::Release); |
54 | 54 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
55 | 55 | | |
56 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 56 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
57 | 57 |
|
58 | | -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 |
| 58 | +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 |
59 | 59 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:38:67 |
60 | 60 | | |
61 | 61 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Release, Ordering::Release); |
62 | 62 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
63 | 63 | | |
64 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 64 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
65 | 65 |
|
66 | | -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 |
| 66 | +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 |
67 | 67 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:40:66 |
68 | 68 | | |
69 | 69 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::AcqRel, Ordering::Release); |
70 | 70 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
71 | 71 | | |
72 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 72 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
73 | 73 |
|
74 | | -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 |
| 74 | +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 |
75 | 75 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:42:66 |
76 | 76 | | |
77 | 77 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::SeqCst, Ordering::Release); |
78 | 78 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
79 | 79 | | |
80 | | - = help: consider using Acquire or Relaxed failure ordering instead |
| 80 | + = help: consider using `Acquire` or `Relaxed` failure ordering instead |
81 | 81 |
|
82 | | -error: compare_exchange_weak's success ordering must be at least as strong as its failure ordering |
| 82 | +error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering |
83 | 83 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:46:48 |
84 | 84 | | |
85 | 85 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::Acquire); |
86 | | - | ^^^^^^^^^^^^^^^^^ ----------------- Acquire failure ordering |
| 86 | + | ^^^^^^^^^^^^^^^^^ ----------------- `Acquire` failure ordering |
87 | 87 | | | |
88 | | - | Release success ordering |
89 | | - | help: consider using AcqRel success ordering instead |
| 88 | + | `Release` success ordering |
| 89 | + | help: consider using `AcqRel` success ordering instead |
90 | 90 |
|
91 | | -error: compare_exchange_weak's success ordering must be at least as strong as its failure ordering |
| 91 | +error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering |
92 | 92 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:48:48 |
93 | 93 | | |
94 | 94 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::SeqCst); |
95 | | - | ^^^^^^^^^^^^^^^^^ ---------------- SeqCst failure ordering |
| 95 | + | ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering |
96 | 96 | | | |
97 | | - | Release success ordering |
98 | | - | help: consider using SeqCst success ordering instead |
| 97 | + | `Release` success ordering |
| 98 | + | help: consider using `SeqCst` success ordering instead |
99 | 99 |
|
100 | | -error: compare_exchange_weak's success ordering must be at least as strong as its failure ordering |
| 100 | +error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering |
101 | 101 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:52:48 |
102 | 102 | | |
103 | 103 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::SeqCst); |
104 | | - | ^^^^^^^^^^^^^^^^^ ---------------- SeqCst failure ordering |
| 104 | + | ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering |
105 | 105 | | | |
106 | | - | Relaxed success ordering |
107 | | - | help: consider using SeqCst success ordering instead |
| 106 | + | `Relaxed` success ordering |
| 107 | + | help: consider using `SeqCst` success ordering instead |
108 | 108 |
|
109 | | -error: compare_exchange_weak's success ordering must be at least as strong as its failure ordering |
| 109 | +error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering |
110 | 110 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:54:48 |
111 | 111 | | |
112 | 112 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Acquire); |
113 | | - | ^^^^^^^^^^^^^^^^^ ----------------- Acquire failure ordering |
| 113 | + | ^^^^^^^^^^^^^^^^^ ----------------- `Acquire` failure ordering |
114 | 114 | | | |
115 | | - | Relaxed success ordering |
116 | | - | help: consider using Acquire success ordering instead |
| 115 | + | `Relaxed` success ordering |
| 116 | + | help: consider using `Acquire` success ordering instead |
117 | 117 |
|
118 | | -error: compare_exchange_weak's success ordering must be at least as strong as its failure ordering |
| 118 | +error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering |
119 | 119 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:58:48 |
120 | 120 | | |
121 | 121 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::SeqCst); |
122 | | - | ^^^^^^^^^^^^^^^^^ ---------------- SeqCst failure ordering |
| 122 | + | ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering |
123 | 123 | | | |
124 | | - | Acquire success ordering |
125 | | - | help: consider using SeqCst success ordering instead |
| 124 | + | `Acquire` success ordering |
| 125 | + | help: consider using `SeqCst` success ordering instead |
126 | 126 |
|
127 | | -error: compare_exchange_weak's success ordering must be at least as strong as its failure ordering |
| 127 | +error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering |
128 | 128 | --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:60:48 |
129 | 129 | | |
130 | 130 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::SeqCst); |
131 | | - | ^^^^^^^^^^^^^^^^ ---------------- SeqCst failure ordering |
| 131 | + | ^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering |
132 | 132 | | | |
133 | | - | AcqRel success ordering |
134 | | - | help: consider using SeqCst success ordering instead |
| 133 | + | `AcqRel` success ordering |
| 134 | + | help: consider using `SeqCst` success ordering instead |
135 | 135 |
|
136 | 136 | error: aborting due to 16 previous errors |
137 | 137 |
|
0 commit comments