about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2024-07-03 03:03:15 -0400
committerGitHub <noreply@github.com>2024-07-03 03:03:15 -0400
commit18ec452b247672c3dd179dc6300450a239e0d81f (patch)
treec65c4b18f2946f118d62c33135780a490236b8bf
parent3e6f6deddfc59b2bf060e92e34e54e489c02e1e1 (diff)
parentcf6f6ca441e2efd3e196f45f36da253c49cec4c0 (diff)
downloadrust-18ec452b247672c3dd179dc6300450a239e0d81f.tar.gz
rust-18ec452b247672c3dd179dc6300450a239e0d81f.zip
Rollup merge of #127115 - RalfJung:unreferenced-used-static, r=lqd,ChrisDenton
unreferenced-used-static: run test everywhere

Follow-up to https://github.com/rust-lang/rust/pull/127099.
-rw-r--r--tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs b/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs
index aa8236b7431..0d34bf988ef 100644
--- a/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs
+++ b/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs
@@ -1,9 +1,10 @@
-// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics couldn't be
-// removed by the MSVC linker, causing linking errors.
+// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics in the
+// binary crate would be marked as "exported", but not be present in the binary, causing linking
+// errors with the MSVC linker.
 
 //@ build-pass: needs linking
-//@ only-msvc
 
 #[used]
 static FOO: u32 = 0;
+
 fn main() {}