| ... | ... | @@ -1,5 +1,5 @@ |
| 1 | 1 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 2 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:71:47 |
| 2 | --> $DIR/lint-invalid-atomic-ordering-update.rs:74:47 |
| 3 | 3 | | |
| 4 | 4 | LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::AcqRel, |old| Some(old + 1)); |
| 5 | 5 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -8,7 +8,7 @@ LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::AcqRel, |old| Some( |
| 8 | 8 | = note: `#[deny(invalid_atomic_ordering)]` on by default |
| 9 | 9 | |
| 10 | 10 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 11 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:73:45 |
| 11 | --> $DIR/lint-invalid-atomic-ordering-update.rs:76:45 |
| 12 | 12 | | |
| 13 | 13 | LL | let _ = x.try_update(Ordering::Relaxed, Ordering::AcqRel, |old| Some(old + 1)); |
| 14 | 14 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -16,7 +16,7 @@ LL | let _ = x.try_update(Ordering::Relaxed, Ordering::AcqRel, |old| Some(ol |
| 16 | 16 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 17 | 17 | |
| 18 | 18 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 19 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:75:41 |
| 19 | --> $DIR/lint-invalid-atomic-ordering-update.rs:78:41 |
| 20 | 20 | | |
| 21 | 21 | LL | let _ = x.update(Ordering::Relaxed, Ordering::AcqRel, |old| old + 1); |
| 22 | 22 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -24,7 +24,7 @@ LL | let _ = x.update(Ordering::Relaxed, Ordering::AcqRel, |old| old + 1); |
| 24 | 24 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 25 | 25 | |
| 26 | 26 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 27 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:78:47 |
| 27 | --> $DIR/lint-invalid-atomic-ordering-update.rs:81:47 |
| 28 | 28 | | |
| 29 | 29 | LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::AcqRel, |old| Some(old + 1)); |
| 30 | 30 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -32,7 +32,7 @@ LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::AcqRel, |old| Some( |
| 32 | 32 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 33 | 33 | |
| 34 | 34 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 35 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:80:45 |
| 35 | --> $DIR/lint-invalid-atomic-ordering-update.rs:83:45 |
| 36 | 36 | | |
| 37 | 37 | LL | let _ = x.try_update(Ordering::Acquire, Ordering::AcqRel, |old| Some(old + 1)); |
| 38 | 38 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -40,7 +40,7 @@ LL | let _ = x.try_update(Ordering::Acquire, Ordering::AcqRel, |old| Some(ol |
| 40 | 40 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 41 | 41 | |
| 42 | 42 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 43 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:82:41 |
| 43 | --> $DIR/lint-invalid-atomic-ordering-update.rs:85:41 |
| 44 | 44 | | |
| 45 | 45 | LL | let _ = x.update(Ordering::Acquire, Ordering::AcqRel, |old| old + 1); |
| 46 | 46 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -48,7 +48,7 @@ LL | let _ = x.update(Ordering::Acquire, Ordering::AcqRel, |old| old + 1); |
| 48 | 48 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 49 | 49 | |
| 50 | 50 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 51 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:85:47 |
| 51 | --> $DIR/lint-invalid-atomic-ordering-update.rs:88:47 |
| 52 | 52 | | |
| 53 | 53 | LL | let _ = x.fetch_update(Ordering::Release, Ordering::AcqRel, |old| Some(old + 1)); |
| 54 | 54 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -56,7 +56,7 @@ LL | let _ = x.fetch_update(Ordering::Release, Ordering::AcqRel, |old| Some( |
| 56 | 56 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 57 | 57 | |
| 58 | 58 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 59 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:87:45 |
| 59 | --> $DIR/lint-invalid-atomic-ordering-update.rs:90:45 |
| 60 | 60 | | |
| 61 | 61 | LL | let _ = x.try_update(Ordering::Release, Ordering::AcqRel, |old| Some(old + 1)); |
| 62 | 62 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -64,7 +64,7 @@ LL | let _ = x.try_update(Ordering::Release, Ordering::AcqRel, |old| Some(ol |
| 64 | 64 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 65 | 65 | |
| 66 | 66 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 67 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:89:41 |
| 67 | --> $DIR/lint-invalid-atomic-ordering-update.rs:92:41 |
| 68 | 68 | | |
| 69 | 69 | LL | let _ = x.update(Ordering::Release, Ordering::AcqRel, |old| old + 1); |
| 70 | 70 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -72,7 +72,7 @@ LL | let _ = x.update(Ordering::Release, Ordering::AcqRel, |old| old + 1); |
| 72 | 72 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 73 | 73 | |
| 74 | 74 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 75 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:92:46 |
| 75 | --> $DIR/lint-invalid-atomic-ordering-update.rs:95:46 |
| 76 | 76 | | |
| 77 | 77 | LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::AcqRel, |old| Some(old + 1)); |
| 78 | 78 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -80,7 +80,7 @@ LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::AcqRel, |old| Some(o |
| 80 | 80 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 81 | 81 | |
| 82 | 82 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 83 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:94:44 |
| 83 | --> $DIR/lint-invalid-atomic-ordering-update.rs:97:44 |
| 84 | 84 | | |
| 85 | 85 | LL | let _ = x.try_update(Ordering::AcqRel, Ordering::AcqRel, |old| Some(old + 1)); |
| 86 | 86 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -88,7 +88,7 @@ LL | let _ = x.try_update(Ordering::AcqRel, Ordering::AcqRel, |old| Some(old |
| 88 | 88 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 89 | 89 | |
| 90 | 90 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 91 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:96:40 |
| 91 | --> $DIR/lint-invalid-atomic-ordering-update.rs:99:40 |
| 92 | 92 | | |
| 93 | 93 | LL | let _ = x.update(Ordering::AcqRel, Ordering::AcqRel, |old| old + 1); |
| 94 | 94 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -96,7 +96,7 @@ LL | let _ = x.update(Ordering::AcqRel, Ordering::AcqRel, |old| old + 1); |
| 96 | 96 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 97 | 97 | |
| 98 | 98 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 99 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:99:46 |
| 99 | --> $DIR/lint-invalid-atomic-ordering-update.rs:102:46 |
| 100 | 100 | | |
| 101 | 101 | LL | let _ = x.fetch_update(Ordering::SeqCst, Ordering::AcqRel, |old| Some(old + 1)); |
| 102 | 102 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -104,7 +104,7 @@ LL | let _ = x.fetch_update(Ordering::SeqCst, Ordering::AcqRel, |old| Some(o |
| 104 | 104 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 105 | 105 | |
| 106 | 106 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 107 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:101:44 |
| 107 | --> $DIR/lint-invalid-atomic-ordering-update.rs:104:44 |
| 108 | 108 | | |
| 109 | 109 | LL | let _ = x.try_update(Ordering::SeqCst, Ordering::AcqRel, |old| Some(old + 1)); |
| 110 | 110 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -112,7 +112,7 @@ LL | let _ = x.try_update(Ordering::SeqCst, Ordering::AcqRel, |old| Some(old |
| 112 | 112 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 113 | 113 | |
| 114 | 114 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 115 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:103:40 |
| 115 | --> $DIR/lint-invalid-atomic-ordering-update.rs:106:40 |
| 116 | 116 | | |
| 117 | 117 | LL | let _ = x.update(Ordering::SeqCst, Ordering::AcqRel, |old| old + 1); |
| 118 | 118 | | ^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -120,7 +120,7 @@ LL | let _ = x.update(Ordering::SeqCst, Ordering::AcqRel, |old| old + 1); |
| 120 | 120 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 121 | 121 | |
| 122 | 122 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 123 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:108:47 |
| 123 | --> $DIR/lint-invalid-atomic-ordering-update.rs:111:47 |
| 124 | 124 | | |
| 125 | 125 | LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::Release, |old| Some(old + 1)); |
| 126 | 126 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -128,7 +128,7 @@ LL | let _ = x.fetch_update(Ordering::Relaxed, Ordering::Release, |old| Some |
| 128 | 128 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 129 | 129 | |
| 130 | 130 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 131 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:110:45 |
| 131 | --> $DIR/lint-invalid-atomic-ordering-update.rs:113:45 |
| 132 | 132 | | |
| 133 | 133 | LL | let _ = x.try_update(Ordering::Relaxed, Ordering::Release, |old| Some(old + 1)); |
| 134 | 134 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -136,7 +136,7 @@ LL | let _ = x.try_update(Ordering::Relaxed, Ordering::Release, |old| Some(o |
| 136 | 136 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 137 | 137 | |
| 138 | 138 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 139 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:112:41 |
| 139 | --> $DIR/lint-invalid-atomic-ordering-update.rs:115:41 |
| 140 | 140 | | |
| 141 | 141 | LL | let _ = x.update(Ordering::Relaxed, Ordering::Release, |old| old + 1); |
| 142 | 142 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -144,7 +144,7 @@ LL | let _ = x.update(Ordering::Relaxed, Ordering::Release, |old| old + 1); |
| 144 | 144 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 145 | 145 | |
| 146 | 146 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 147 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:115:47 |
| 147 | --> $DIR/lint-invalid-atomic-ordering-update.rs:118:47 |
| 148 | 148 | | |
| 149 | 149 | LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::Release, |old| Some(old + 1)); |
| 150 | 150 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -152,7 +152,7 @@ LL | let _ = x.fetch_update(Ordering::Acquire, Ordering::Release, |old| Some |
| 152 | 152 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 153 | 153 | |
| 154 | 154 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 155 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:117:45 |
| 155 | --> $DIR/lint-invalid-atomic-ordering-update.rs:120:45 |
| 156 | 156 | | |
| 157 | 157 | LL | let _ = x.try_update(Ordering::Acquire, Ordering::Release, |old| Some(old + 1)); |
| 158 | 158 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -160,7 +160,7 @@ LL | let _ = x.try_update(Ordering::Acquire, Ordering::Release, |old| Some(o |
| 160 | 160 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 161 | 161 | |
| 162 | 162 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 163 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:119:41 |
| 163 | --> $DIR/lint-invalid-atomic-ordering-update.rs:122:41 |
| 164 | 164 | | |
| 165 | 165 | LL | let _ = x.update(Ordering::Acquire, Ordering::Release, |old| old + 1); |
| 166 | 166 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -168,7 +168,7 @@ LL | let _ = x.update(Ordering::Acquire, Ordering::Release, |old| old + 1); |
| 168 | 168 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 169 | 169 | |
| 170 | 170 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 171 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:122:47 |
| 171 | --> $DIR/lint-invalid-atomic-ordering-update.rs:125:47 |
| 172 | 172 | | |
| 173 | 173 | LL | let _ = x.fetch_update(Ordering::Release, Ordering::Release, |old| Some(old + 1)); |
| 174 | 174 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -176,7 +176,7 @@ LL | let _ = x.fetch_update(Ordering::Release, Ordering::Release, |old| Some |
| 176 | 176 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 177 | 177 | |
| 178 | 178 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 179 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:124:45 |
| 179 | --> $DIR/lint-invalid-atomic-ordering-update.rs:127:45 |
| 180 | 180 | | |
| 181 | 181 | LL | let _ = x.try_update(Ordering::Release, Ordering::Release, |old| Some(old + 1)); |
| 182 | 182 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -184,7 +184,7 @@ LL | let _ = x.try_update(Ordering::Release, Ordering::Release, |old| Some(o |
| 184 | 184 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 185 | 185 | |
| 186 | 186 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 187 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:126:41 |
| 187 | --> $DIR/lint-invalid-atomic-ordering-update.rs:129:41 |
| 188 | 188 | | |
| 189 | 189 | LL | let _ = x.update(Ordering::Release, Ordering::Release, |old| old + 1); |
| 190 | 190 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -192,7 +192,7 @@ LL | let _ = x.update(Ordering::Release, Ordering::Release, |old| old + 1); |
| 192 | 192 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 193 | 193 | |
| 194 | 194 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 195 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:129:46 |
| 195 | --> $DIR/lint-invalid-atomic-ordering-update.rs:132:46 |
| 196 | 196 | | |
| 197 | 197 | LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::Release, |old| Some(old + 1)); |
| 198 | 198 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -200,7 +200,7 @@ LL | let _ = x.fetch_update(Ordering::AcqRel, Ordering::Release, |old| Some( |
| 200 | 200 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 201 | 201 | |
| 202 | 202 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 203 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:131:44 |
| 203 | --> $DIR/lint-invalid-atomic-ordering-update.rs:134:44 |
| 204 | 204 | | |
| 205 | 205 | LL | let _ = x.try_update(Ordering::AcqRel, Ordering::Release, |old| Some(old + 1)); |
| 206 | 206 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -208,7 +208,7 @@ LL | let _ = x.try_update(Ordering::AcqRel, Ordering::Release, |old| Some(ol |
| 208 | 208 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 209 | 209 | |
| 210 | 210 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 211 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:133:40 |
| 211 | --> $DIR/lint-invalid-atomic-ordering-update.rs:136:40 |
| 212 | 212 | | |
| 213 | 213 | LL | let _ = x.update(Ordering::AcqRel, Ordering::Release, |old| old + 1); |
| 214 | 214 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -216,7 +216,7 @@ LL | let _ = x.update(Ordering::AcqRel, Ordering::Release, |old| old + 1); |
| 216 | 216 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 217 | 217 | |
| 218 | 218 | error: `fetch_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `fetch_update` does not result in a write |
| 219 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:136:46 |
| 219 | --> $DIR/lint-invalid-atomic-ordering-update.rs:139:46 |
| 220 | 220 | | |
| 221 | 221 | LL | let _ = x.fetch_update(Ordering::SeqCst, Ordering::Release, |old| Some(old + 1)); |
| 222 | 222 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -224,7 +224,7 @@ LL | let _ = x.fetch_update(Ordering::SeqCst, Ordering::Release, |old| Some( |
| 224 | 224 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 225 | 225 | |
| 226 | 226 | error: `try_update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `try_update` does not result in a write |
| 227 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:138:44 |
| 227 | --> $DIR/lint-invalid-atomic-ordering-update.rs:141:44 |
| 228 | 228 | | |
| 229 | 229 | LL | let _ = x.try_update(Ordering::SeqCst, Ordering::Release, |old| Some(old + 1)); |
| 230 | 230 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |
| ... | ... | @@ -232,7 +232,7 @@ LL | let _ = x.try_update(Ordering::SeqCst, Ordering::Release, |old| Some(ol |
| 232 | 232 | = help: consider using `Acquire` or `Relaxed` failure ordering instead |
| 233 | 233 | |
| 234 | 234 | error: `update`'s failure ordering may not be `Release` or `AcqRel`, since a failed `update` does not result in a write |
| 235 | | --> $DIR/lint-invalid-atomic-ordering-update.rs:140:40 |
| 235 | --> $DIR/lint-invalid-atomic-ordering-update.rs:143:40 |
| 236 | 236 | | |
| 237 | 237 | LL | let _ = x.update(Ordering::SeqCst, Ordering::Release, |old| old + 1); |
| 238 | 238 | | ^^^^^^^^^^^^^^^^^ invalid failure ordering |