Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b1e8099

Browse files
authored
Rollup merge of rust-lang#134777 - saethlin:enable-more-tests-on-windows, r=Noratrieb
Enable more tests on Windows As part of the discussion of rust-lang/compiler-team#822 on Zulip, it was mentioned that problems with the i686-pc-windows-gnu target may have resulted in tests being disabled on Windows. So in this PR, I've ripped out all our `//@ ignore-windows` directives, then re-added all the ones that are definitely required based on the outcome of try-builds, and in some cases I've improved the justification or tightened the directives to `//@ ignore-msvc` or ignoring specific targets.
2 parents 613bdd4 + 5efee2c commit b1e8099

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+39
-63
lines changed

tests/codegen/debug-column.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Verify that debuginfo column numbers are 1-based byte offsets.
22
//
3-
//@ ignore-windows
3+
//@ ignore-msvc
44
//@ compile-flags: -C debuginfo=2
55

66
#[rustfmt::skip]

tests/codegen/force-no-unwind-tables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ compile-flags: -C no-prepopulate-passes -C panic=abort -C force-unwind-tables=n
2-
//@ ignore-windows
2+
//@ ignore-windows: unwind tables are required for panics on Windows
33

44
#![crate_type = "lib"]
55

tests/codegen/thread-local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ compile-flags: -O
22
//@ aux-build:thread_local_aux.rs
3-
//@ ignore-windows FIXME(#84933)
3+
//@ ignore-windows FIXME(#134939)
44
//@ ignore-wasm globals are used instead of thread locals
55
//@ ignore-emscripten globals are used instead of thread locals
66
//@ ignore-android does not use #[thread_local]

tests/crashes/132981.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
//@compile-flags: -Clink-dead-code=true --crate-type lib
33
//@ only-x86_64
44
//@ ignore-windows
5+
// The set of targets this crashes on is really fiddly, because it is deep in our ABI logic. It
6+
// crashes on x86_64-unknown-linux-gnu, and i686-pc-windows-msvc, but not on
7+
// x86_64-pc-windows-msvc. If you are trying to fix this crash, don't pay too much attention to the
8+
// directives.
59

610
#![feature(rust_cold_cc)]
711
pub extern "rust-cold" fn foo(_: [usize; 3]) {}

tests/rustdoc-ui/doctest/relative-path-include-bytes-132203.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ ignore-windows
1+
//@ ignore-windows different error message
22
//@ revisions: edition2015 edition2024
33
//@[edition2015]edition:2015
44
//@[edition2015]check-fail

tests/ui-fulldeps/stable-mir/check_abi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//@ ignore-stage1
55
//@ ignore-cross-compile
66
//@ ignore-remote
7-
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
87

98
#![feature(rustc_private)]
109
#![feature(assert_matches)]

tests/ui-fulldeps/stable-mir/check_allocation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//@ ignore-stage1
66
//@ ignore-cross-compile
77
//@ ignore-remote
8-
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
98
//@ edition: 2021
109

1110
#![feature(rustc_private)]

tests/ui-fulldeps/stable-mir/check_attribute.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//@ ignore-stage1
55
//@ ignore-cross-compile
66
//@ ignore-remote
7-
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
87

98
#![feature(rustc_private)]
109

tests/ui-fulldeps/stable-mir/check_binop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//@ ignore-stage1
55
//@ ignore-cross-compile
66
//@ ignore-remote
7-
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
87

98
#![feature(rustc_private)]
109

tests/ui-fulldeps/stable-mir/check_crate_defs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//@ ignore-stage1
55
//@ ignore-cross-compile
66
//@ ignore-remote
7-
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
87

98
#![feature(rustc_private)]
109
#![feature(assert_matches)]

0 commit comments

Comments
 (0)