about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-scrape-examples-macros/rmake.rs
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-06-06 21:34:34 +0200
committerJakub Beránek <berykubik@gmail.com>2024-06-07 11:12:24 +0200
commitd86c9819087fbc64b7d0a638b2fd8584831bb661 (patch)
treed5b0e3ae2f0816945d3712b9986f9b022af529bf /tests/run-make/rustdoc-scrape-examples-macros/rmake.rs
parent94ccb9b34d5cd9472bd2651055efb6a75d6649c8 (diff)
downloadrust-d86c9819087fbc64b7d0a638b2fd8584831bb661.tar.gz
rust-d86c9819087fbc64b7d0a638b2fd8584831bb661.zip
Remove all usages of `tmp_dir` from tests
Diffstat (limited to 'tests/run-make/rustdoc-scrape-examples-macros/rmake.rs')
-rw-r--r--tests/run-make/rustdoc-scrape-examples-macros/rmake.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/run-make/rustdoc-scrape-examples-macros/rmake.rs b/tests/run-make/rustdoc-scrape-examples-macros/rmake.rs
index 81b7defafc6..2daaab76e54 100644
--- a/tests/run-make/rustdoc-scrape-examples-macros/rmake.rs
+++ b/tests/run-make/rustdoc-scrape-examples-macros/rmake.rs
@@ -1,11 +1,10 @@
 //@ ignore-cross-compile
 
-use run_make_support::{htmldocck, rustc, rustdoc, tmp_dir};
+use run_make_support::{htmldocck, rustc, rustdoc};
 
 fn main() {
-    let tmp_dir = tmp_dir();
-    let out_dir = tmp_dir.join("rustdoc");
-    let ex_dir = tmp_dir.join("ex.calls");
+    let out_dir = "rustdoc";
+    let ex_dir = "ex.calls";
     let proc_crate_name = "foobar_macro";
     let crate_name = "foobar";
 
@@ -41,8 +40,8 @@ fn main() {
         .crate_name("ex")
         .crate_type("bin")
         .output(&out_dir)
-        .extern_(crate_name, tmp_dir.join(format!("lib{crate_name}.rlib")))
-        .extern_(proc_crate_name, tmp_dir.join(dylib_name.trim()))
+        .extern_(crate_name, format!("lib{crate_name}.rlib"))
+        .extern_(proc_crate_name, dylib_name.trim())
         .arg("-Zunstable-options")
         .arg("--scrape-examples-output-path")
         .arg(&ex_dir)