Enable test empty_loop_no_std on windows
This commit is contained in:
parent
580f642cfa
commit
38e80132d5
@ -1,6 +1,5 @@
|
|||||||
// compile-flags: -Clink-arg=-nostartfiles
|
// compile-flags: -Clink-arg=-nostartfiles
|
||||||
// ignore-macos
|
// ignore-macos
|
||||||
// ignore-windows
|
|
||||||
|
|
||||||
#![warn(clippy::empty_loop)]
|
#![warn(clippy::empty_loop)]
|
||||||
#![feature(lang_items, start, libc)]
|
#![feature(lang_items, start, libc)]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
error: empty `loop {}` wastes CPU cycles
|
error: empty `loop {}` wastes CPU cycles
|
||||||
--> $DIR/empty_loop_no_std.rs:14:5
|
--> $DIR/empty_loop_no_std.rs:13:5
|
||||||
|
|
|
|
||||||
LL | loop {}
|
LL | loop {}
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
@ -8,7 +8,7 @@ LL | loop {}
|
|||||||
= help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body
|
= help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body
|
||||||
|
|
||||||
error: empty `loop {}` wastes CPU cycles
|
error: empty `loop {}` wastes CPU cycles
|
||||||
--> $DIR/empty_loop_no_std.rs:26:5
|
--> $DIR/empty_loop_no_std.rs:25:5
|
||||||
|
|
|
|
||||||
LL | loop {}
|
LL | loop {}
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
Loading…
x
Reference in New Issue
Block a user