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