File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments