about summary refs log tree commit diff
path: root/tests/run-make/inaccessible-temp-dir
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-07-01 10:55:43 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-07-01 10:55:57 +0200
commitfcfac05657acf387392f853904c917ac06c082c5 (patch)
tree445ddb2010f2f3fec4a6d500102a2d743e7917cd /tests/run-make/inaccessible-temp-dir
parentb5b97dccaeb764c7dc0e7877941808acabb1cc8c (diff)
downloadrust-fcfac05657acf387392f853904c917ac06c082c5.tar.gz
rust-fcfac05657acf387392f853904c917ac06c082c5.zip
Improve `target` method API in `run-make-support`
Diffstat (limited to 'tests/run-make/inaccessible-temp-dir')
-rw-r--r--tests/run-make/inaccessible-temp-dir/rmake.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-make/inaccessible-temp-dir/rmake.rs b/tests/run-make/inaccessible-temp-dir/rmake.rs
index c6bfae4cc01..6b3e9e0b29e 100644
--- a/tests/run-make/inaccessible-temp-dir/rmake.rs
+++ b/tests/run-make/inaccessible-temp-dir/rmake.rs
@@ -28,7 +28,7 @@ fn main() {
         // Run rustc with `-Z temps-dir` set to a directory *inside* the inaccessible one,
         // so that it can't create `tmp`.
         rustc()
-            .target(&target())
+            .target(target())
             .input("program.rs")
             .arg("-Ztemps-dir=inaccessible/tmp")
             .run_fail()