about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-07-12 21:16:46 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-07-13 14:28:49 +0800
commit1d0cbc6816cbc3cf069a9970a09666ed5b4aafdf (patch)
tree46ea8677610fe05f628966315e9f4a3145cf6fc7 /tests
parentafeed5067762d0a087744bda528cc3c95cb81e9a (diff)
downloadrust-1d0cbc6816cbc3cf069a9970a09666ed5b4aafdf.tar.gz
rust-1d0cbc6816cbc3cf069a9970a09666ed5b4aafdf.zip
Update `run-make` tests to use adjusted `symbols` helpers
Diffstat (limited to 'tests')
-rw-r--r--tests/run-make/fmt-write-bloat/rmake.rs4
-rw-r--r--tests/run-make/used/rmake.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/run-make/fmt-write-bloat/rmake.rs b/tests/run-make/fmt-write-bloat/rmake.rs
index 3348651d501..b78e8f49683 100644
--- a/tests/run-make/fmt-write-bloat/rmake.rs
+++ b/tests/run-make/fmt-write-bloat/rmake.rs
@@ -20,7 +20,7 @@
 use run_make_support::artifact_names::bin_name;
 use run_make_support::env::no_debug_assertions;
 use run_make_support::rustc;
-use run_make_support::symbols::any_symbol_contains;
+use run_make_support::symbols::object_contains_any_symbol_substring;
 
 fn main() {
     rustc().input("main.rs").opt().run();
@@ -31,5 +31,5 @@ fn main() {
         // otherwise, add them to the list of symbols to deny.
         panic_syms.extend_from_slice(&["panicking", "panic_fmt", "pad_integral", "Display"]);
     }
-    assert!(!any_symbol_contains(bin_name("main"), &panic_syms));
+    assert!(!object_contains_any_symbol_substring(bin_name("main"), &panic_syms));
 }
diff --git a/tests/run-make/used/rmake.rs b/tests/run-make/used/rmake.rs
index bcdb84132d3..456321e2f56 100644
--- a/tests/run-make/used/rmake.rs
+++ b/tests/run-make/used/rmake.rs
@@ -8,9 +8,9 @@
 // https://rust-lang.github.io/rfcs/2386-used.html
 
 use run_make_support::rustc;
-use run_make_support::symbols::any_symbol_contains;
+use run_make_support::symbols::object_contains_any_symbol_substring;
 
 fn main() {
     rustc().opt_level("3").emit("obj").input("used.rs").run();
-    assert!(any_symbol_contains("used.o", &["FOO"]));
+    assert!(object_contains_any_symbol_substring("used.o", &["FOO"]));
 }