Skip to content

Commit f5f592c

Browse files
committed
tests: remove some trailing ws
1 parent 6acb9e7 commit f5f592c

19 files changed

+50
-50
lines changed

compiler/rustc_errors/src/emitter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ impl HumanEmitter {
984984
// 4 | }
985985
// |
986986
for pos in 0..=line_len {
987-
draw_col_separator(buffer, line_offset + pos + 1, width_offset - 2);
987+
draw_col_separator_no_space(buffer, line_offset + pos + 1, width_offset - 2);
988988
}
989989

990990
// Write the horizontal lines for multiline annotations
@@ -2260,13 +2260,13 @@ impl HumanEmitter {
22602260
buffer.puts(*row_num, max_line_num_len + 1, "+ ", Style::Addition);
22612261
}
22622262
[] => {
2263-
draw_col_separator(buffer, *row_num, max_line_num_len + 1);
2263+
draw_col_separator_no_space(buffer, *row_num, max_line_num_len + 1);
22642264
}
22652265
_ => {
22662266
buffer.puts(*row_num, max_line_num_len + 1, "~ ", Style::Addition);
22672267
}
22682268
}
2269-
buffer.append(*row_num, &normalize_whitespace(line_to_add), Style::NoStyle);
2269+
buffer.puts(*row_num, max_line_num_len + 3, &normalize_whitespace(line_to_add), Style::NoStyle);
22702270
} else if let DisplaySuggestion::Add = show_code_change {
22712271
buffer.puts(*row_num, 0, &self.maybe_anonymized(line_num), Style::LineNumber);
22722272
buffer.puts(*row_num, max_line_num_len + 1, "+ ", Style::Addition);

tests/ui/codemap_tests/huge_multispan_highlight.svg

Lines changed: 10 additions & 10 deletions
Loading

tests/ui/error-emitter/highlighting.svg

Lines changed: 5 additions & 5 deletions
Loading

tests/ui/error-emitter/highlighting.windows.svg

Lines changed: 5 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)