]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/atomic_ordering_exchange_weak.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / atomic_ordering_exchange_weak.stderr
CommitLineData
f20569fa
XL
1error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
2 --> $DIR/atomic_ordering_exchange_weak.rs:23:67
3 |
4LL | 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
10error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
11 --> $DIR/atomic_ordering_exchange_weak.rs:24:67
12 |
13LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::AcqRel);
14 | ^^^^^^^^^^^^^^^^
15 |
16 = help: consider using ordering modes `Acquire` or `Relaxed` instead
17
18error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
19 --> $DIR/atomic_ordering_exchange_weak.rs:25:67
20 |
21LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::AcqRel);
22 | ^^^^^^^^^^^^^^^^
23 |
24 = help: consider using ordering mode `Relaxed` instead
25
26error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
27 --> $DIR/atomic_ordering_exchange_weak.rs:26:66
28 |
29LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::AcqRel);
30 | ^^^^^^^^^^^^^^^^
31 |
32 = help: consider using ordering modes `Acquire` or `Relaxed` instead
33
34error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
35 --> $DIR/atomic_ordering_exchange_weak.rs:27:66
36 |
37LL | 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
42error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
43 --> $DIR/atomic_ordering_exchange_weak.rs:30:67
44 |
45LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Release);
46 | ^^^^^^^^^^^^^^^^^
47 |
48 = help: consider using ordering mode `Relaxed` instead
49
50error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
51 --> $DIR/atomic_ordering_exchange_weak.rs:31:67
52 |
53LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Acquire, Ordering::Release);
54 | ^^^^^^^^^^^^^^^^^
55 |
56 = help: consider using ordering modes `Acquire` or `Relaxed` instead
57
58error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
59 --> $DIR/atomic_ordering_exchange_weak.rs:32:67
60 |
61LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Release, Ordering::Release);
62 | ^^^^^^^^^^^^^^^^^
63 |
64 = help: consider using ordering mode `Relaxed` instead
65
66error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
67 --> $DIR/atomic_ordering_exchange_weak.rs:33:66
68 |
69LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::AcqRel, Ordering::Release);
70 | ^^^^^^^^^^^^^^^^^
71 |
72 = help: consider using ordering modes `Acquire` or `Relaxed` instead
73
74error: compare_exchange_weak's failure ordering may not be `Release` or `AcqRel`
75 --> $DIR/atomic_ordering_exchange_weak.rs:34:66
76 |
77LL | 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
82error: 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 |
85LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::Acquire);
86 | ^^^^^^^^^^^^^^^^^
87 |
88 = help: consider using ordering mode `Relaxed` instead
89
90error: 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 |
93LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Release, Ordering::SeqCst);
94 | ^^^^^^^^^^^^^^^^
95 |
96 = help: consider using ordering mode `Relaxed` instead
97
98error: 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 |
101LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::SeqCst);
102 | ^^^^^^^^^^^^^^^^
103 |
104 = help: consider using ordering mode `Relaxed` instead
105
106error: 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 |
109LL | let _ = x.compare_exchange_weak(ptr, ptr2, Ordering::Relaxed, Ordering::Acquire);
110 | ^^^^^^^^^^^^^^^^^
111 |
112 = help: consider using ordering mode `Relaxed` instead
113
114error: 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 |
117LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::Acquire, Ordering::SeqCst);
118 | ^^^^^^^^^^^^^^^^
119 |
120 = help: consider using ordering modes `Acquire` or `Relaxed` instead
121
122error: 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 |
125LL | let _ = x.compare_exchange_weak(ptr2, ptr, Ordering::AcqRel, Ordering::SeqCst);
126 | ^^^^^^^^^^^^^^^^
127 |
128 = help: consider using ordering modes `Acquire` or `Relaxed` instead
129
130error: aborting due to 16 previous errors
131