Skip to content

Commit 7a5e773

Browse files
committed
fall back on the blank path if out_filename is blank
1 parent a206121 commit 7a5e773

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_metadata/src

1 file changed

+1
-1
lines changed

compiler/rustc_metadata/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn encode_and_write_metadata(
6464
// which is why we create it inside the output directory specifically.
6565
let metadata_tmpdir = TempFileBuilder::new()
6666
.prefix("rmeta")
67-
.tempdir_in(out_filename.parent().unwrap_or_else(|| Path::new("tmp")))
67+
.tempdir_in(out_filename.parent().unwrap_or_else(|| Path::new("")))
6868
.unwrap_or_else(|err| tcx.sess.fatal(&format!("couldn't create a temp dir: {}", err)));
6969
let metadata_tmpdir = MaybeTempDir::new(metadata_tmpdir, tcx.sess.opts.cg.save_temps);
7070
let metadata_filename = metadata_tmpdir.as_ref().join(METADATA_FILENAME);

0 commit comments

Comments
 (0)