Skip to content

Commit

Permalink
Rollup merge of rust-lang#111633 - nnethercote:avoid-ref-format, r=Wa…
Browse files Browse the repository at this point in the history
…ffleLapkin

Avoid `&format("...")` calls in error message code.

Some error message cleanups. Best reviewed one commit at a time.

r? `@davidtwco`
  • Loading branch information
Dylan-DPC authored May 18, 2023
2 parents 74ab27c + 8a9b38f commit 84644eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretty_clif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
}
Expand Down

0 comments on commit 84644eb

Please sign in to comment.