2020-01-09 11:51:13 -06:00
|
|
|
error: memory fences cannot have `Relaxed` ordering
|
2020-12-02 17:16:12 -06:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fence.rs:17:11
|
2020-01-09 11:51:13 -06:00
|
|
|
|
|
|
|
|
LL | fence(Ordering::Relaxed);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using ordering modes `Acquire`, `Release`, `AcqRel` or `SeqCst`
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[deny(invalid_atomic_ordering)]` on by default
|
2020-01-09 11:51:13 -06:00
|
|
|
|
|
|
|
error: memory fences cannot have `Relaxed` ordering
|
2020-12-02 17:16:12 -06:00
|
|
|
--> $DIR/lint-invalid-atomic-ordering-fence.rs:19:20
|
2020-01-09 11:51:13 -06:00
|
|
|
|
|
|
|
|
LL | compiler_fence(Ordering::Relaxed);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using ordering modes `Acquire`, `Release`, `AcqRel` or `SeqCst`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|