about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-02 06:44:03 +0000
committerbors <bors@rust-lang.org>2022-08-02 06:44:03 +0000
commit367d09fc4ec16bd6097f1d9a24a7d6a590bf9a89 (patch)
tree71e19314973d363f8ad2a383e33a67a8e3d35a4f
parenta5a6c95da813ce81d9d4c83d2632379284e0fc06 (diff)
parent38e80132d5179525c82f4c75648303cba57215af (diff)
downloadrust-367d09fc4ec16bd6097f1d9a24a7d6a590bf9a89.tar.gz
rust-367d09fc4ec16bd6097f1d9a24a7d6a590bf9a89.zip
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
-rw-r--r--tests/ui/empty_loop_no_std.rs1
-rw-r--r--tests/ui/empty_loop_no_std.stderr4
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/empty_loop_no_std.rs b/tests/ui/empty_loop_no_std.rs
index 235e0fc5179..e742b396fcd 100644
--- a/tests/ui/empty_loop_no_std.rs
+++ b/tests/ui/empty_loop_no_std.rs
@@ -1,6 +1,5 @@
 // compile-flags: -Clink-arg=-nostartfiles
 // ignore-macos
-// ignore-windows
 
 #![warn(clippy::empty_loop)]
 #![feature(lang_items, start, libc)]
diff --git a/tests/ui/empty_loop_no_std.stderr b/tests/ui/empty_loop_no_std.stderr
index 520248fcb68..5ded35a6f0d 100644
--- a/tests/ui/empty_loop_no_std.stderr
+++ b/tests/ui/empty_loop_no_std.stderr
@@ -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 {}
    |     ^^^^^^^