]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-invalid-atomic-ordering-fetch-update.stderr
Auto merge of #85690 - bstrie:m2_arena, r=jackh726,nagisa
[rust.git] / src / test / ui / lint / lint-invalid-atomic-ordering-fetch-update.stderr
1 error: fetch_update's failure ordering may not be `Release` or `AcqRel`
2   --> $DIR/lint-invalid-atomic-ordering-fetch-update.rs:20:47
3    |
4 LL |     let _ = x.fetch_update(Ordering::Relaxed, Ordering::AcqRel, |old| Some(old + 1));
5    |                                               ^^^^^^^^^^^^^^^^
6    |
7    = note: `#[deny(invalid_atomic_ordering)]` on by default
8    = help: consider using ordering mode `Relaxed` instead
9
10 error: fetch_update's failure ordering may not be `Release` or `AcqRel`
11   --> $DIR/lint-invalid-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/lint-invalid-atomic-ordering-fetch-update.rs:24: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/lint-invalid-atomic-ordering-fetch-update.rs:26: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/lint-invalid-atomic-ordering-fetch-update.rs:28: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/lint-invalid-atomic-ordering-fetch-update.rs:32: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/lint-invalid-atomic-ordering-fetch-update.rs:34: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/lint-invalid-atomic-ordering-fetch-update.rs:36: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/lint-invalid-atomic-ordering-fetch-update.rs:38: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/lint-invalid-atomic-ordering-fetch-update.rs:40: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/lint-invalid-atomic-ordering-fetch-update.rs:44: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/lint-invalid-atomic-ordering-fetch-update.rs:46: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/lint-invalid-atomic-ordering-fetch-update.rs:50: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/lint-invalid-atomic-ordering-fetch-update.rs:52: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/lint-invalid-atomic-ordering-fetch-update.rs:56: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/lint-invalid-atomic-ordering-fetch-update.rs:58: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