diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-18 10:52:35 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-18 10:52:35 +0530 |
| commit | 08efb9d652c840715d15954592426e2befe13b36 (patch) | |
| tree | aa97bae80b39c4e36910dd711e499002f5ab59cd /compiler/rustc_codegen_cranelift/src | |
| parent | cdfaf69498e339b02a90193cc842eed462c8e589 (diff) | |
| parent | 01e33a3600789b0e96511c4ac95fc114b507c79e (diff) | |
| download | rust-08efb9d652c840715d15954592426e2befe13b36.tar.gz rust-08efb9d652c840715d15954592426e2befe13b36.zip | |
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`
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/pretty_clif.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/pretty_clif.rs b/compiler/rustc_codegen_cranelift/src/pretty_clif.rs index 27e21183c55..1007b33eca4 100644 --- a/compiler/rustc_codegen_cranelift/src/pretty_clif.rs +++ b/compiler/rustc_codegen_cranelift/src/pretty_clif.rs @@ -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), ); } } |
