Auto merge of #9254 - alex-semenyuk:enable_empty_loop_no_std_on_windows, r=dswij

Enable test empty_loop_no_std on windows

Verified that it actully works on windows
changelog: none
This commit is contained in:
bors 2022-08-02 06:44:03 +00:00
commit 367d09fc4e
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
// compile-flags: -Clink-arg=-nostartfiles
// ignore-macos
// ignore-windows
#![warn(clippy::empty_loop)]
#![feature(lang_items, start, libc)]

View File

@ -1,5 +1,5 @@
error: empty `loop {}` wastes CPU cycles
--> $DIR/empty_loop_no_std.rs:14:5
--> $DIR/empty_loop_no_std.rs:13:5
|
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
error: empty `loop {}` wastes CPU cycles
--> $DIR/empty_loop_no_std.rs:26:5
--> $DIR/empty_loop_no_std.rs:25:5
|
LL | loop {}
| ^^^^^^^