Skip to content

Commit df97dd1

Browse files
committed
Pass a test directory to rustfmt
1 parent e78c51a commit df97dd1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/bootstrap/test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ impl Step for Rustfmt {
313313

314314
// Don't build tests dynamically, just a pain to work with
315315
cargo.env("RUSTC_NO_PREFER_DYNAMIC", "1");
316+
let dir = testdir(builder, compiler.host);
317+
t!(fs::create_dir_all(&dir));
318+
cargo.env("RUSTFMT_TEST_DIR", dir);
316319

317320
builder.add_rustc_lib_path(compiler, &mut cargo);
318321

src/tools/rustfmt

0 commit comments

Comments
 (0)