Skip to content

Commit c863049

Browse files
committed
Fix tidy
1 parent 9d5b13e commit c863049

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/librustc_codegen_llvm/back/link.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ fn link_binary_output(sess: &Session,
321321
// final destination, with a `fs::rename` call. In order for the rename to
322322
// always succeed, the temporary file needs to be on the same filesystem,
323323
// which is why we create it inside the output directory specifically.
324-
let metadata_tmpdir = match TempFileBuilder::new().prefix("rmeta").tempdir_in(out_filename.parent().unwrap()) {
324+
let metadata_tmpdir = match TempFileBuilder::new()
325+
.prefix("rmeta")
326+
.tempdir_in(out_filename.parent().unwrap())
327+
{
325328
Ok(tmpdir) => tmpdir,
326329
Err(err) => sess.fatal(&format!("couldn't create a temp dir: {}", err)),
327330
};

src/librustdoc/test.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
277277
let cstore = CStore::new(codegen_backend.metadata_loader());
278278
rustc_lint::register_builtins(&mut sess.lint_store.borrow_mut(), Some(&sess));
279279

280-
let outdir = Mutex::new(TempFileBuilder::new().prefix("rustdoctest").tempdir().expect("rustdoc needs a tempdir"));
280+
let outdir = Mutex::new(
281+
TempFileBuilder::new().prefix("rustdoctest").tempdir().expect("rustdoc needs a tempdir")
282+
);
281283
let libdir = sess.target_filesearch(PathKind::All).get_lib_path();
282284
let mut control = driver::CompileController::basic();
283285

src/tools/tidy/src/deps.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static WHITELIST: &'static [Crate] = &[
114114
Crate("scopeguard"),
115115
Crate("smallvec"),
116116
Crate("stable_deref_trait"),
117-
Crate("tempdir"),
117+
Crate("tempfile"),
118118
Crate("termcolor"),
119119
Crate("terminon"),
120120
Crate("termion"),

0 commit comments

Comments
 (0)