11error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:22 :67
2+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:28 :67
33 |
44LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering::AcqRel);
55 | ^^^^^^^^^^^^^^^^ invalid failure ordering
@@ -8,130 +8,76 @@ LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering:
88 = help: consider using `Acquire` or `Relaxed` failure ordering instead
99
1010error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:24 :67
11+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:30 :67
1212 |
1313LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::AcqRel);
1414 | ^^^^^^^^^^^^^^^^ invalid failure ordering
1515 |
1616 = help: consider using `Acquire` or `Relaxed` failure ordering instead
1717
1818error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:26 :67
19+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:32 :67
2020 |
2121LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::AcqRel);
2222 | ^^^^^^^^^^^^^^^^ invalid failure ordering
2323 |
2424 = help: consider using `Acquire` or `Relaxed` failure ordering instead
2525
2626error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:28 :66
27+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:34 :66
2828 |
2929LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::AcqRel);
3030 | ^^^^^^^^^^^^^^^^ invalid failure ordering
3131 |
3232 = help: consider using `Acquire` or `Relaxed` failure ordering instead
3333
3434error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:30 :66
35+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:36 :66
3636 |
3737LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::SeqCst, Ordering::AcqRel);
3838 | ^^^^^^^^^^^^^^^^ invalid failure ordering
3939 |
4040 = help: consider using `Acquire` or `Relaxed` failure ordering instead
4141
4242error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:34 :67
43+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:40 :67
4444 |
4545LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Release);
4646 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
4747 |
4848 = help: consider using `Acquire` or `Relaxed` failure ordering instead
4949
5050error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:36 :67
51+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:42 :67
5252 |
5353LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Acquire, Ordering::Release);
5454 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
5555 |
5656 = help: consider using `Acquire` or `Relaxed` failure ordering instead
5757
5858error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:38 :67
59+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:44 :67
6060 |
6161LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Release, Ordering::Release);
6262 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
6363 |
6464 = help: consider using `Acquire` or `Relaxed` failure ordering instead
6565
6666error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:40 :66
67+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:46 :66
6868 |
6969LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::AcqRel, Ordering::Release);
7070 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
7171 |
7272 = help: consider using `Acquire` or `Relaxed` failure ordering instead
7373
7474error: `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- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:42 :66
75+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:48 :66
7676 |
7777LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::SeqCst, Ordering::Release);
7878 | ^^^^^^^^^^^^^^^^^ invalid failure ordering
7979 |
8080 = help: consider using `Acquire` or `Relaxed` failure ordering instead
8181
82- error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering
83- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:46:48
84- |
85- LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::Acquire);
86- | ^^^^^^^^^^^^^^^^^ ----------------- `Acquire` failure ordering
87- | |
88- | `Release` success ordering
89- | help: consider using `AcqRel` success ordering instead
90-
91- error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering
92- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:48:48
93- |
94- LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::SeqCst);
95- | ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
96- | |
97- | `Release` success ordering
98- | help: consider using `SeqCst` success ordering instead
99-
100- error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering
101- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:52:48
102- |
103- LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::SeqCst);
104- | ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
105- | |
106- | `Relaxed` success ordering
107- | help: consider using `SeqCst` success ordering instead
108-
109- error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering
110- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:54:48
111- |
112- LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Acquire);
113- | ^^^^^^^^^^^^^^^^^ ----------------- `Acquire` failure ordering
114- | |
115- | `Relaxed` success ordering
116- | help: consider using `Acquire` success ordering instead
117-
118- error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering
119- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:58:48
120- |
121- LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::SeqCst);
122- | ^^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
123- | |
124- | `Acquire` success ordering
125- | help: consider using `SeqCst` success ordering instead
126-
127- error: `compare_exchange_weak`'s success ordering must be at least as strong as its failure ordering
128- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:60:48
129- |
130- LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::SeqCst);
131- | ^^^^^^^^^^^^^^^^ ---------------- `SeqCst` failure ordering
132- | |
133- | `AcqRel` success ordering
134- | help: consider using `SeqCst` success ordering instead
135-
136- error: aborting due to 16 previous errors
82+ error: aborting due to 10 previous errors
13783
0 commit comments