Skip to content

Commit

Permalink
Auto merge of #9254 - alex-semenyuk:enable_empty_loop_no_std_on_windo…
Browse files Browse the repository at this point in the history
…ws, r=dswij

Enable test empty_loop_no_std on windows

Verified that it actully works on windows
changelog: none
  • Loading branch information
bors committed Aug 2, 2022
2 parents a5a6c95 + 38e8013 commit 641e8a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/ui/empty_loop_no_std.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// compile-flags: -Clink-arg=-nostartfiles
// ignore-macos
// ignore-windows

#![warn(clippy::empty_loop)]
#![feature(lang_items, start, libc)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/empty_loop_no_std.stderr
Original file line number Diff line number Diff line change
@@ -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 {}
| ^^^^^^^
Expand All @@ -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 {}
| ^^^^^^^
Expand Down

0 comments on commit 641e8a5

Please sign in to comment.