diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-06-10 13:52:00 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-08-04 10:48:30 +0200 |
| commit | f8372f876c66ae4df96638bbfdf9ac7baffcf3a6 (patch) | |
| tree | 5187f5f174709d7b0f1bad0e8fc0421e2444329e /compiler/rustc_errors/src | |
| parent | 71ff9b41e9ebd3e336019513917a7a8868d1cc66 (diff) | |
| download | rust-f8372f876c66ae4df96638bbfdf9ac7baffcf3a6.tar.gz rust-f8372f876c66ae4df96638bbfdf9ac7baffcf3a6.zip | |
Remove trailing whitespace from error messages
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index 87272b1605b..050f3ae5833 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -954,7 +954,6 @@ impl EmitterWriter { // | for pos in 0..=line_len { draw_col_separator(buffer, line_offset + pos + 1, width_offset - 2); - buffer.putc(line_offset + pos + 1, width_offset - 2, '|', Style::LineNumber); } // Write the horizontal lines for multiline annotations @@ -1344,7 +1343,11 @@ impl EmitterWriter { let buffer_msg_line_offset = buffer.num_lines(); // Add spacing line - draw_col_separator(&mut buffer, buffer_msg_line_offset, max_line_num_len + 1); + draw_col_separator_no_space( + &mut buffer, + buffer_msg_line_offset, + max_line_num_len + 1, + ); // Then, the secondary file indicator buffer.prepend(buffer_msg_line_offset + 1, "::: ", Style::LineNumber); |
