diff options
| author | bors <bors@rust-lang.org> | 2023-11-08 01:01:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-08 01:01:58 +0000 |
| commit | 0d5ec963bb9f3e481bca1d0149d26f1688784341 (patch) | |
| tree | 7c398cd691f0f28bca3389d28d1ce1f24ca8e0ae /compiler/rustc_errors/src | |
| parent | ff0b4b6091a75ad840035a991426c8bc9fbd93bb (diff) | |
| parent | f72e974e3fa5bd9097ae155e8bb9eb29f25f2d8c (diff) | |
| download | rust-0d5ec963bb9f3e481bca1d0149d26f1688784341.tar.gz rust-0d5ec963bb9f3e481bca1d0149d26f1688784341.zip | |
Auto merge of #117692 - matthiaskrgr:rollup-umaf5pr, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #113925 (Improve diagnostic for const ctors in array repeat expressions) - #116399 (Small changes w/ `query::Erase<_>`) - #117625 (Fix some clippy perf lints) - #117655 (Method suggestion code tweaks) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index 6d95fbcfad0..68dba860291 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -2362,11 +2362,7 @@ impl FileWithAnnotatedLines { let label = label.as_ref().map(|m| { normalize_whitespace( - &emitter - .translate_message(m, &args) - .map_err(Report::new) - .unwrap() - .to_string(), + &emitter.translate_message(m, &args).map_err(Report::new).unwrap(), ) }); |
