diff options
| author | bors <bors@rust-lang.org> | 2023-04-02 09:39:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-02 09:39:41 +0000 |
| commit | 11cd4ff34db4dca57acd4782a78a5987bb153608 (patch) | |
| tree | ded564766541d2965fe2d424c789039ae0949600 /compiler/rustc_errors/src | |
| parent | 637d7fdb2333dcd8eadaec2eb95273e7569c46cc (diff) | |
| parent | 59f394bf8645729a1ffdcbf04745e5566ea045c1 (diff) | |
| download | rust-11cd4ff34db4dca57acd4782a78a5987bb153608.tar.gz rust-11cd4ff34db4dca57acd4782a78a5987bb153608.zip | |
Auto merge of #109852 - Nilstrieb:rollup-g3mgxxw, r=Nilstrieb
Rollup of 4 pull requests Successful merges: - #109839 (Improve grammar of Iterator.partition_in_place) - #109840 (Fix typo in std/src/os/fd/owned.rs) - #109844 (a couple clippy::complexity fixes) - #109846 (more clippy::complexity fixes (iter_kv_map, map_flatten, nonminimal_bool)) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index d6fd057c5a4..4b1ff0e1df9 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -2235,7 +2235,7 @@ impl EmitterWriter { } } else if is_multiline { buffer.puts(*row_num, 0, &self.maybe_anonymized(line_num), Style::LineNumber); - match &highlight_parts[..] { + match &highlight_parts { [SubstitutionHighlight { start: 0, end }] if *end == line_to_add.len() => { buffer.puts(*row_num, max_line_num_len + 1, "+ ", Style::Addition); } |
