mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 01:54:49 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
435 B
Text
11 lines
435 B
Text
error: busy-waiting loop should at least have a spin loop hint
|
|
--> $DIR/missing_spin_loop_no_std.rs:12:37
|
|
|
|
|
LL | while b.load(Ordering::Acquire) {}
|
|
| ^^ help: try: `{ core::hint::spin_loop() }`
|
|
|
|
|
= note: `-D clippy::missing-spin-loop` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_spin_loop)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|