about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-08-14 16:44:05 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-08-14 16:44:05 +0000
commit221701421066fc91eee4c7bde129b607088cf328 (patch)
tree0e1f3e5e986c9c02bdd3d97ca641fb02fdca37e8
parentdb68a19b619ffc4b4ee9d1118d064d184d0bcd37 (diff)
downloadrust-221701421066fc91eee4c7bde129b607088cf328.tar.gz
rust-221701421066fc91eee4c7bde129b607088cf328.zip
Apply some suggestions to the test rmake file
-rw-r--r--tests/run-make/staticlib-thin-archive/rmake.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/run-make/staticlib-thin-archive/rmake.rs b/tests/run-make/staticlib-thin-archive/rmake.rs
index f7e3e43d535..955c50da201 100644
--- a/tests/run-make/staticlib-thin-archive/rmake.rs
+++ b/tests/run-make/staticlib-thin-archive/rmake.rs
@@ -3,21 +3,16 @@
 // archive support rustc would add emit object files to the staticlib and after
 // the object crate added thin archive support it would previously crash the
 // compiler due to a missing special case for thin archive members.
-use std::path::Path;
-
-use run_make_support::{llvm_ar, rust_lib_name, rustc, static_lib_name};
+use run_make_support::{llvm_ar, path, rfs, rust_lib_name, rustc, static_lib_name};
 
 fn main() {
-    std::fs::create_dir("archive").unwrap();
+    rfs::create_dir("archive");
 
     // Build a thin archive
     rustc().input("simple_obj.rs").emit("obj").output("archive/simple_obj.o").run();
     llvm_ar()
         .obj_to_thin_ar()
-        .output_input(
-            Path::new("archive").join(static_lib_name("thin_archive")),
-            "archive/simple_obj.o",
-        )
+        .output_input(path("archive").join(static_lib_name("thin_archive")), "archive/simple_obj.o")
         .run();
 
     // Build an rlib which includes the members of this thin archive