diff options
| author | klensy <klensy@users.noreply.github.com> | 2022-06-08 20:34:57 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2022-06-16 14:40:28 +0300 |
| commit | 0ff8ae3111939a30d61f158b53e120f965989520 (patch) | |
| tree | ca3a7a001f6a787dda15c3d2706b0963d2898219 /compiler/rustc_errors/src/emitter.rs | |
| parent | d40f24e956a698e47a209541031c4045acc5a684 (diff) | |
| download | rust-0ff8ae3111939a30d61f158b53e120f965989520.tar.gz rust-0ff8ae3111939a30d61f158b53e120f965989520.zip | |
diagnostics: fix trailing space
Diffstat (limited to 'compiler/rustc_errors/src/emitter.rs')
| -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 e9e7065ec03..5f0ad42c17a 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -1920,7 +1920,7 @@ impl EmitterWriter { // Only show an underline in the suggestions if the suggestion is not the // entirety of the code being shown and the displayed code is not multiline. if let DisplaySuggestion::Diff | DisplaySuggestion::Underline = show_code_change { - draw_col_separator(&mut buffer, row_num, max_line_num_len + 1); + draw_col_separator_no_space(&mut buffer, row_num, max_line_num_len + 1); for part in parts { let span_start_pos = sm.lookup_char_pos(part.span.lo()).col_display; let span_end_pos = sm.lookup_char_pos(part.span.hi()).col_display; |
