Rollup merge of #111633 - nnethercote:avoid-ref-format, r=WaffleLapkin
Avoid `&format("...")` calls in error message code. Some error message cleanups. Best reviewed one commit at a time. r? `@davidtwco`
This commit is contained in:
commit
08efb9d652
37 changed files with 139 additions and 147 deletions
|
@ -227,7 +227,7 @@ pub(crate) fn write_ir_file(
|
|||
// Using early_warn as no Session is available here
|
||||
rustc_session::early_warn(
|
||||
rustc_session::config::ErrorOutputType::default(),
|
||||
&format!("error writing ir file: {}", err),
|
||||
format!("error writing ir file: {}", err),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue