Enable test empty_loop_no_std on windows

This commit is contained in:
alex-semenyuk 2022-07-28 10:57:01 +03:00
parent 580f642cfa
commit 38e80132d5
2 changed files with 2 additions and 3 deletions

View File

@ -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)]

View File

@ -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 {}
| ^^^^^^^ | ^^^^^^^