Skip to content

Commit eb844db

Browse files
committed
Auto merge of #128603 - ChrisDenton:used, r=<try>
Update run-make/used to use `any_symbol_contains` This makes it so we don't need `nm` or `llvm-nm`. I also tested that `BAR` is removed. I'm not sure if this is wanted though. try-job: x86_64-msvc try-job: i686-msvc
2 parents a604303 + b564b70 commit eb844db

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/run-make/used/rmake.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
// It comes from #39987 which implements this RFC for the #[used] attribute:
55
// https://rust-lang.github.io/rfcs/2386-used.html
66

7-
//@ ignore-msvc
8-
9-
use run_make_support::{cmd, rustc};
7+
use run_make_support::rustc;
8+
use run_make_support::symbols::any_symbol_contains;
109

1110
fn main() {
1211
rustc().opt_level("3").emit("obj").input("used.rs").run();
13-
14-
cmd("nm").arg("used.o").run().assert_stdout_contains("FOO");
12+
assert!(any_symbol_contains("used.o", &["FOO"]));
13+
assert!(!any_symbol_contains("used.o", &["BAR"]));
1514
}

0 commit comments

Comments
 (0)