Skip to content

Commit f538b7b

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

19 files changed

+55
-50
lines changed

compiler/rustc_errors/src/emitter.rs

+8-3
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,18 @@ 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(
2270+
*row_num,
2271+
max_line_num_len + 3,
2272+
&normalize_whitespace(line_to_add),
2273+
Style::NoStyle,
2274+
);
22702275
} else if let DisplaySuggestion::Add = show_code_change {
22712276
buffer.puts(*row_num, 0, &self.maybe_anonymized(line_num), Style::LineNumber);
22722277
buffer.puts(*row_num, max_line_num_len + 1, "+ ", Style::Addition);

tests/ui/codemap_tests/huge_multispan_highlight.svg

+10-10
Loading

tests/ui/error-emitter/highlighting.svg

+5-5
Loading

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

+5-5
Loading

0 commit comments

Comments
 (0)