]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/atomic_ordering_exchange.stderr
Auto merge of #78448 - rylev:cache-foreign_modules, r=wesleywiser
[rust.git] / src / tools / clippy / tests / ui / atomic_ordering_exchange.stderr
1 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
2   --> $DIR/atomic_ordering_exchange.rs:21:57
3    |
4 LL |     let _ = x.compare_exchange(0, 0, 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's failure ordering may not be `Release` or `AcqRel`
11   --> $DIR/atomic_ordering_exchange.rs:22:57
12    |
13 LL |     let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::AcqRel);
14    |                                                         ^^^^^^^^^^^^^^^^
15    |
16    = help: consider using ordering modes `Acquire` or `Relaxed` instead
17
18 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
19   --> $DIR/atomic_ordering_exchange.rs:23:57
20    |
21 LL |     let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::AcqRel);
22    |                                                         ^^^^^^^^^^^^^^^^
23    |
24    = help: consider using ordering mode `Relaxed` instead
25
26 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
27   --> $DIR/atomic_ordering_exchange.rs:24:56
28    |
29 LL |     let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::AcqRel);
30    |                                                        ^^^^^^^^^^^^^^^^
31    |
32    = help: consider using ordering modes `Acquire` or `Relaxed` instead
33
34 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
35   --> $DIR/atomic_ordering_exchange.rs:25:56
36    |
37 LL |     let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::AcqRel);
38    |                                                        ^^^^^^^^^^^^^^^^
39    |
40    = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed` instead
41
42 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
43   --> $DIR/atomic_ordering_exchange.rs:28:57
44    |
45 LL |     let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::Release);
46    |                                                         ^^^^^^^^^^^^^^^^^
47    |
48    = help: consider using ordering mode `Relaxed` instead
49
50 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
51   --> $DIR/atomic_ordering_exchange.rs:29:57
52    |
53 LL |     let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::Release);
54    |                                                         ^^^^^^^^^^^^^^^^^
55    |
56    = help: consider using ordering modes `Acquire` or `Relaxed` instead
57
58 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
59   --> $DIR/atomic_ordering_exchange.rs:30:57
60    |
61 LL |     let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::Release);
62    |                                                         ^^^^^^^^^^^^^^^^^
63    |
64    = help: consider using ordering mode `Relaxed` instead
65
66 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
67   --> $DIR/atomic_ordering_exchange.rs:31:56
68    |
69 LL |     let _ = x.compare_exchange(0, 0, Ordering::AcqRel, Ordering::Release);
70    |                                                        ^^^^^^^^^^^^^^^^^
71    |
72    = help: consider using ordering modes `Acquire` or `Relaxed` instead
73
74 error: compare_exchange's failure ordering may not be `Release` or `AcqRel`
75   --> $DIR/atomic_ordering_exchange.rs:32:56
76    |
77 LL |     let _ = x.compare_exchange(0, 0, Ordering::SeqCst, Ordering::Release);
78    |                                                        ^^^^^^^^^^^^^^^^^
79    |
80    = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed` instead
81
82 error: compare_exchange's failure ordering may not be stronger than the success ordering of `Release`
83   --> $DIR/atomic_ordering_exchange.rs:35:57
84    |
85 LL |     let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::Acquire);
86    |                                                         ^^^^^^^^^^^^^^^^^
87    |
88    = help: consider using ordering mode `Relaxed` instead
89
90 error: compare_exchange's failure ordering may not be stronger than the success ordering of `Release`
91   --> $DIR/atomic_ordering_exchange.rs:36:57
92    |
93 LL |     let _ = x.compare_exchange(0, 0, Ordering::Release, Ordering::SeqCst);
94    |                                                         ^^^^^^^^^^^^^^^^
95    |
96    = help: consider using ordering mode `Relaxed` instead
97
98 error: compare_exchange's failure ordering may not be stronger than the success ordering of `Relaxed`
99   --> $DIR/atomic_ordering_exchange.rs:39:57
100    |
101 LL |     let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::SeqCst);
102    |                                                         ^^^^^^^^^^^^^^^^
103    |
104    = help: consider using ordering mode `Relaxed` instead
105
106 error: compare_exchange's failure ordering may not be stronger than the success ordering of `Relaxed`
107   --> $DIR/atomic_ordering_exchange.rs:40:57
108    |
109 LL |     let _ = x.compare_exchange(0, 0, Ordering::Relaxed, Ordering::Acquire);
110    |                                                         ^^^^^^^^^^^^^^^^^
111    |
112    = help: consider using ordering mode `Relaxed` instead
113
114 error: compare_exchange's failure ordering may not be stronger than the success ordering of `Acquire`
115   --> $DIR/atomic_ordering_exchange.rs:43:57
116    |
117 LL |     let _ = x.compare_exchange(0, 0, Ordering::Acquire, Ordering::SeqCst);
118    |                                                         ^^^^^^^^^^^^^^^^
119    |
120    = help: consider using ordering modes `Acquire` or `Relaxed` instead
121
122 error: compare_exchange's failure ordering may not be stronger than the success ordering of `AcqRel`
123   --> $DIR/atomic_ordering_exchange.rs:44:56
124    |
125 LL |     let _ = x.compare_exchange(0, 0, 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