fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB35 linesraw
1error: atomic loads cannot have `Release` or `AcqRel` ordering
2  --> $DIR/lint-invalid-atomic-ordering-ptr.rs:15:20
3   |
4LL |     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
10error: atomic loads cannot have `Release` or `AcqRel` ordering
11  --> $DIR/lint-invalid-atomic-ordering-ptr.rs:17:20
12   |
13LL |     let _ = x.load(Ordering::AcqRel);
14   |                    ^^^^^^^^^^^^^^^^
15   |
16   = help: consider using ordering modes `Acquire`, `SeqCst` or `Relaxed`
17
18error: atomic stores cannot have `Acquire` or `AcqRel` ordering
19  --> $DIR/lint-invalid-atomic-ordering-ptr.rs:26:24
20   |
21LL |     x.store(other_ptr, Ordering::Acquire);
22   |                        ^^^^^^^^^^^^^^^^^
23   |
24   = help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
25
26error: atomic stores cannot have `Acquire` or `AcqRel` ordering
27  --> $DIR/lint-invalid-atomic-ordering-ptr.rs:28:24
28   |
29LL |     x.store(other_ptr, Ordering::AcqRel);
30   |                        ^^^^^^^^^^^^^^^^
31   |
32   = help: consider using ordering modes `Release`, `SeqCst` or `Relaxed`
33
34error: aborting due to 4 previous errors
35