diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-24 17:47:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-24 17:47:10 +0200 |
| commit | 974a1c242f78ccfb94e43b5c45fc7be501c00d1c (patch) | |
| tree | c8c1bf6a909072195f1272e03ca2d06106f550a6 /compiler/rustc_errors/src/lib.rs | |
| parent | 4d2f98d306c93e53556e86e48d029f774bae79b5 (diff) | |
| parent | e36b901933bbd4e747a7eddfbadf23bda93eba02 (diff) | |
| download | rust-974a1c242f78ccfb94e43b5c45fc7be501c00d1c.tar.gz rust-974a1c242f78ccfb94e43b5c45fc7be501c00d1c.zip | |
Rollup merge of #113993 - nyurik:ref_format_errors, r=WaffleLapkin
Optimize format usage Per #112156, using `&` in `format!` may cause a small perf delay, so I tried to clean up one module at a time format usage. This PR includes a few removals of the ref in format (they do compile locally without the ref), as well as a few format inlining for consistency.
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 1da02e1bb01..eae7a46e07a 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1485,7 +1485,7 @@ impl HandlerInner { let _ = self.fatal(errors); } (_, _) => { - let _ = self.fatal(format!("{}; {}", &errors, &warnings)); + let _ = self.fatal(format!("{errors}; {warnings}")); } } |
