about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-06-06 20:40:08 +0200
committerJakub Beránek <berykubik@gmail.com>2024-06-07 11:12:04 +0200
commit7ebcc37d653bf6551bf53a2453750c05dc745fc7 (patch)
tree60d1730d1dfc193381497b7c12a8f659b3361d1c
parent3f20c721ceed518f3a94c2a29582b1d8789fb29f (diff)
downloadrust-7ebcc37d653bf6551bf53a2453750c05dc745fc7.tar.gz
rust-7ebcc37d653bf6551bf53a2453750c05dc745fc7.zip
Fix `bare-outfile` test
-rw-r--r--tests/run-make/bare-outfile/rmake.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/run-make/bare-outfile/rmake.rs b/tests/run-make/bare-outfile/rmake.rs
index 82d0fab5073..badf1396b73 100644
--- a/tests/run-make/bare-outfile/rmake.rs
+++ b/tests/run-make/bare-outfile/rmake.rs
@@ -3,13 +3,9 @@
 
 //@ ignore-cross-compile
 
-use run_make_support::{run, rustc, tmp_dir};
-use std::env;
-use std::fs;
+use run_make_support::{run, rustc};
 
 fn main() {
-    fs::copy("foo.rs", tmp_dir().join("foo.rs")).unwrap();
-    env::set_current_dir(tmp_dir());
     rustc().output("foo").input("foo.rs").run();
     run("foo");
 }