Skip to content

Commit 5b12a41

Browse files
authored
Unrolled build for #147005
Rollup merge of #147005 - GuillaumeGomez:string-formatting-cleanup, r=jdonszelmann Small string formatting cleanup This PR is mostly useless. I was going through this file, saw that and corrected it. That's pretty much it. Feel free to close it if it's a bother.
2 parents 7cfd7d3 + aa75d34 commit 5b12a41

File tree

1 file changed

+3
-5
lines changed
  • compiler/rustc_interface/src

1 file changed

+3
-5
lines changed

compiler/rustc_interface/src/util.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ fn get_codegen_sysroot(
386386
.collect::<Vec<_>>()
387387
.join("\n* ");
388388
let err = format!(
389-
"failed to find a `codegen-backends` folder \
390-
in the sysroot candidates:\n* {candidates}"
389+
"failed to find a `codegen-backends` folder in the sysroot candidates:\n\
390+
* {candidates}"
391391
);
392392
early_dcx.early_fatal(err);
393393
});
@@ -396,10 +396,8 @@ fn get_codegen_sysroot(
396396

397397
let d = sysroot.read_dir().unwrap_or_else(|e| {
398398
let err = format!(
399-
"failed to load default codegen backend, couldn't \
400-
read `{}`: {}",
399+
"failed to load default codegen backend, couldn't read `{}`: {e}",
401400
sysroot.display(),
402-
e
403401
);
404402
early_dcx.early_fatal(err);
405403
});

0 commit comments

Comments
 (0)