rust/tests/ui/missing_spin_loop_no_std.stderr

11 lines
354 B
Plaintext
Raw Normal View History

2021-12-26 03:00:29 -06:00
error: busy-waiting loop should at least have a spin loop hint
2023-07-27 06:40:22 -05:00
--> $DIR/missing_spin_loop_no_std.rs:12:37
2021-12-26 03:00:29 -06:00
|
LL | while b.load(Ordering::Acquire) {}
2023-07-01 06:08:01 -05:00
| ^^ help: try: `{ core::hint::spin_loop() }`
2021-12-26 03:00:29 -06:00
|
= note: `-D clippy::missing-spin-loop` implied by `-D warnings`
error: aborting due to previous error