diff options
| author | bors <bors@rust-lang.org> | 2022-03-10 23:10:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-10 23:10:59 +0000 |
| commit | 352e621368c31d7b4a6362e081586cdb931ba020 (patch) | |
| tree | c39f926df5a4daee81ea294b9edcd46742e14e18 /compiler/rustc_errors/src | |
| parent | 5f4e0677190b82e61dc507e3e72caf89da8e5e28 (diff) | |
| parent | 456135c9c2ab17e3b6deff7c78284e8892d2495d (diff) | |
| download | rust-352e621368c31d7b4a6362e081586cdb931ba020.tar.gz rust-352e621368c31d7b4a6362e081586cdb931ba020.zip | |
Auto merge of #94824 - Dylan-DPC:rollup-iamc09j, r=Dylan-DPC
Rollup of 7 pull requests Successful merges: - #93950 (Use modern formatting for format! macros) - #94274 (Treat unstable lints as unknown) - #94368 ([1/2] Implement macro meta-variable expressions) - #94719 (Statically compile libstdc++ everywhere if asked) - #94728 (Only emit pointer-like metadata for `Box<T, A>` when `A` is ZST) - #94790 (enable portable-simd doctests in Miri) - #94811 (Update browser-ui-test version) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 217d3ec2c24..3641c38f9dc 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1087,12 +1087,12 @@ impl HandlerInner { let warnings = match self.deduplicated_warn_count { 0 => String::new(), 1 => "1 warning emitted".to_string(), - count => format!("{} warnings emitted", count), + count => format!("{count} warnings emitted"), }; let errors = match self.deduplicated_err_count { 0 => String::new(), 1 => "aborting due to previous error".to_string(), - count => format!("aborting due to {} previous errors", count), + count => format!("aborting due to {count} previous errors"), }; if self.treat_err_as_bug() { return; |
