]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-invalid-atomic-ordering-bool.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / lint / lint-invalid-atomic-ordering-bool.stderr
1 error: atomic loads cannot have `Release` or `AcqRel` ordering
2   --> $DIR/lint-invalid-atomic-ordering-bool.rs:13:20
3    |
4 LL |     let _ = x.load(Ordering::Release);
5    |                    ^^^^^^^^^^^^^^^^^
6    |
7    = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed`
8    = note: `#[deny(invalid_atomic_ordering)]` on by default
9
10 error: atomic loads cannot have `Release` or `AcqRel` ordering
11   --> $DIR/lint-invalid-atomic-ordering-bool.rs:15:20
12    |
13 LL |     let _ = x.load(Ordering::AcqRel);
14    |                    ^^^^^^^^^^^^^^^^
15    |
16    = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed`
17
18 error: atomic stores cannot have `Acquire` or `AcqRel` ordering
19   --> $DIR/lint-invalid-atomic-ordering-bool.rs:24:20
20    |
21 LL |     x.store(false, Ordering::Acquire);
22    |                    ^^^^^^^^^^^^^^^^^
23    |
24    = help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
25
26 error: atomic stores cannot have `Acquire` or `AcqRel` ordering
27   --> $DIR/lint-invalid-atomic-ordering-bool.rs:26:20
28    |
29 LL |     x.store(false, Ordering::AcqRel);
30    |                    ^^^^^^^^^^^^^^^^
31    |
32    = help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
33
34 error: aborting due to 4 previous errors
35