Skip to content

Commit de84b00

Browse files
committed
[DO NOT MERGE] debug logging
1 parent eb92cef commit de84b00

File tree

2 files changed

+3
-2
lines changed
  • src
    • bootstrap/src/core/build_steps
    • tools/rustfmt/src/test

2 files changed

+3
-2
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ impl Step for Rustfmt {
424424

425425
let dir = testdir(builder, compiler.host);
426426
t!(fs::create_dir_all(&dir));
427-
cargo.env("RUSTFMT_TEST_DIR", dir);
427+
cargo.env("RUSTFMT_TEST_DIR", &dir);
428+
eprintln!("RUSTFMT_TEST_DIR = {:?}", dir.display());
428429

429430
cargo.add_rustc_lib_path(builder);
430431

src/tools/rustfmt/src/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ fn make_temp_file(file_name: &'static str) -> TempFile {
10181018
let target_dir = var("RUSTFMT_TEST_DIR").unwrap_or_else(|_| ".".to_owned());
10191019
let path = Path::new(&target_dir).join(file_name);
10201020

1021-
let mut file = File::create(&path).expect("couldn't create temp file");
1021+
let mut file = File::create(&path).expect(format!("couldn't create temp file @ path = {:?}", path));
10221022
let content = "fn main() {}\n";
10231023
file.write_all(content.as_bytes())
10241024
.expect("couldn't write temp file");

0 commit comments

Comments
 (0)