1
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:22 :67
2
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:28 :67
3
3
|
4
4
LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering::AcqRel);
5
5
| ^^^^^^^^^^^^^^^^ invalid failure ordering
@@ -8,130 +8,76 @@ LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering:
8
8
= help: consider using `Acquire` or `Relaxed` failure ordering instead
9
9
10
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:24 :67
11
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:30 :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
16
= help: consider using `Acquire` or `Relaxed` failure ordering instead
17
17
18
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:26 :67
19
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:32 :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
24
= help: consider using `Acquire` or `Relaxed` failure ordering instead
25
25
26
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:28 :66
27
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:34 :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
32
= help: consider using `Acquire` or `Relaxed` failure ordering instead
33
33
34
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:30 :66
35
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:36 :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
40
= help: consider using `Acquire` or `Relaxed` failure ordering instead
41
41
42
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:34 :67
43
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:40 :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
48
= help: consider using `Acquire` or `Relaxed` failure ordering instead
49
49
50
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:36 :67
51
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:42 :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
56
= help: consider using `Acquire` or `Relaxed` failure ordering instead
57
57
58
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:38 :67
59
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:44 :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
64
= help: consider using `Acquire` or `Relaxed` failure ordering instead
65
65
66
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:40 :66
67
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:46 :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
72
= help: consider using `Acquire` or `Relaxed` failure ordering instead
73
73
74
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
- --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:42 :66
75
+ --> $DIR/lint-invalid-atomic-ordering-exchange-weak.rs:48 :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
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
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
137
83
0 commit comments