We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c8459f commit a656bb6Copy full SHA for a656bb6
tests/run-make/inaccessible-temp-dir/rmake.rs
@@ -19,7 +19,7 @@
19
// Reason: `set_readonly` has no effect on directories
20
// and does not prevent modification.
21
22
-use run_make_support::{fs_wrapper, rustc, test_while_readonly};
+use run_make_support::{fs_wrapper, rustc, target, test_while_readonly};
23
24
fn main() {
25
// Create an inaccessible directory.
@@ -28,6 +28,7 @@ fn main() {
28
// Run rustc with `-Z temps-dir` set to a directory *inside* the inaccessible one,
29
// so that it can't create `tmp`.
30
rustc()
31
+ .target(&target())
32
.input("program.rs")
33
.arg("-Ztemps-dir=inaccessible/tmp")
34
.run_fail()
0 commit comments