Skip to content

Commit 367d09f

Browse files
committed
Auto merge of rust-lang#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
2 parents a5a6c95 + 38e8013 commit 367d09f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/ui/empty_loop_no_std.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// compile-flags: -Clink-arg=-nostartfiles
22
// ignore-macos
3-
// ignore-windows
43

54
#![warn(clippy::empty_loop)]
65
#![feature(lang_items, start, libc)]

tests/ui/empty_loop_no_std.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: empty `loop {}` wastes CPU cycles
2-
--> $DIR/empty_loop_no_std.rs:14:5
2+
--> $DIR/empty_loop_no_std.rs:13:5
33
|
44
LL | loop {}
55
| ^^^^^^^
@@ -8,7 +8,7 @@ LL | loop {}
88
= help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body
99

1010
error: empty `loop {}` wastes CPU cycles
11-
--> $DIR/empty_loop_no_std.rs:26:5
11+
--> $DIR/empty_loop_no_std.rs:25:5
1212
|
1313
LL | loop {}
1414
| ^^^^^^^

0 commit comments

Comments
 (0)