]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` |
2 | --> $DIR/atomic_ordering_exchange_weak.rs:23:67 | |
3 | | | |
4 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Relaxed, Ordering::AcqRel); | |
5 | | ^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::invalid-atomic-ordering` implied by `-D warnings` | |
8 | = help: consider using ordering mode `Relaxed` instead | |
9 | ||
10 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
11 | --> $DIR/atomic_ordering_exchange_weak.rs:24:67 | |
12 | | | |
13 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::AcqRel); | |
14 | | ^^^^^^^^^^^^^^^^ | |
15 | | | |
16 | = help: consider using ordering modes `Acquire` or `Relaxed` instead | |
17 | ||
18 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
19 | --> $DIR/atomic_ordering_exchange_weak.rs:25:67 | |
20 | | | |
21 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::AcqRel); | |
22 | | ^^^^^^^^^^^^^^^^ | |
23 | | | |
24 | = help: consider using ordering mode `Relaxed` instead | |
25 | ||
26 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
27 | --> $DIR/atomic_ordering_exchange_weak.rs:26:66 | |
28 | | | |
29 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::AcqRel); | |
30 | | ^^^^^^^^^^^^^^^^ | |
31 | | | |
32 | = help: consider using ordering modes `Acquire` or `Relaxed` instead | |
33 | ||
34 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
35 | --> $DIR/atomic_ordering_exchange_weak.rs:27:66 | |
36 | | | |
37 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::SeqCst, Ordering::AcqRel); | |
38 | | ^^^^^^^^^^^^^^^^ | |
39 | | | |
40 | = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed` instead | |
41 | ||
42 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
43 | --> $DIR/atomic_ordering_exchange_weak.rs:30:67 | |
44 | | | |
45 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Release); | |
46 | | ^^^^^^^^^^^^^^^^^ | |
47 | | | |
48 | = help: consider using ordering mode `Relaxed` instead | |
49 | ||
50 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
51 | --> $DIR/atomic_ordering_exchange_weak.rs:31:67 | |
52 | | | |
53 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Acquire, Ordering::Release); | |
54 | | ^^^^^^^^^^^^^^^^^ | |
55 | | | |
56 | = help: consider using ordering modes `Acquire` or `Relaxed` instead | |
57 | ||
58 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
59 | --> $DIR/atomic_ordering_exchange_weak.rs:32:67 | |
60 | | | |
61 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Release, Ordering::Release); | |
62 | | ^^^^^^^^^^^^^^^^^ | |
63 | | | |
64 | = help: consider using ordering mode `Relaxed` instead | |
65 | ||
66 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
67 | --> $DIR/atomic_ordering_exchange_weak.rs:33:66 | |
68 | | | |
69 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::AcqRel, Ordering::Release); | |
70 | | ^^^^^^^^^^^^^^^^^ | |
71 | | | |
72 | = help: consider using ordering modes `Acquire` or `Relaxed` instead | |
73 | ||
74 | error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel` | |
75 | --> $DIR/atomic_ordering_exchange_weak.rs:34:66 | |
76 | | | |
77 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::SeqCst, Ordering::Release); | |
78 | | ^^^^^^^^^^^^^^^^^ | |
79 | | | |
80 | = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed` instead | |
81 | ||
82 | error: compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Release` | |
83 | --> $DIR/atomic_ordering_exchange_weak.rs:37:67 | |
84 | | | |
85 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::Acquire); | |
86 | | ^^^^^^^^^^^^^^^^^ | |
87 | | | |
88 | = help: consider using ordering mode `Relaxed` instead | |
89 | ||
90 | error: compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Release` | |
91 | --> $DIR/atomic_ordering_exchange_weak.rs:38:67 | |
92 | | | |
93 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::SeqCst); | |
94 | | ^^^^^^^^^^^^^^^^ | |
95 | | | |
96 | = help: consider using ordering mode `Relaxed` instead | |
97 | ||
98 | error: compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Relaxed` | |
99 | --> $DIR/atomic_ordering_exchange_weak.rs:41:67 | |
100 | | | |
101 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::SeqCst); | |
102 | | ^^^^^^^^^^^^^^^^ | |
103 | | | |
104 | = help: consider using ordering mode `Relaxed` instead | |
105 | ||
106 | error: compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Relaxed` | |
107 | --> $DIR/atomic_ordering_exchange_weak.rs:42:67 | |
108 | | | |
109 | LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Acquire); | |
110 | | ^^^^^^^^^^^^^^^^^ | |
111 | | | |
112 | = help: consider using ordering mode `Relaxed` instead | |
113 | ||
114 | error: compare_exchange_weak's failure ordering may not be stronger than the success ordering of `Acquire` | |
115 | --> $DIR/atomic_ordering_exchange_weak.rs:45:67 | |
116 | | | |
117 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::SeqCst); | |
118 | | ^^^^^^^^^^^^^^^^ | |
119 | | | |
120 | = help: consider using ordering modes `Acquire` or `Relaxed` instead | |
121 | ||
122 | error: compare_exchange_weak's failure ordering may not be stronger than the success ordering of `AcqRel` | |
123 | --> $DIR/atomic_ordering_exchange_weak.rs:46:66 | |
124 | | | |
125 | LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::SeqCst); | |
126 | | ^^^^^^^^^^^^^^^^ | |
127 | | | |
128 | = help: consider using ordering modes `Acquire` or `Relaxed` instead | |
129 | ||
130 | error: aborting due to 16 previous errors | |
131 |