We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f890f commit 159d8a4Copy full SHA for 159d8a4
src/librustc_errors/emitter.rs
@@ -1817,10 +1817,9 @@ impl FileWithAnnotatedLines {
1817
// Every `|` that joins the beginning of the span (`___^`) to the end (`|__^`).
1818
add_annotation_to_file(&mut output, file.clone(), line, ann.as_line());
1819
}
1820
- if middle < ann.line_end - 1 {
1821
- for line in ann.line_end - 1..ann.line_end {
1822
- add_annotation_to_file(&mut output, file.clone(), line, ann.as_line());
1823
- }
+ let line_end = ann.line_end - 1;
+ if middle < line_end {
+ add_annotation_to_file(&mut output, file.clone(), line_end, ann.as_line());
1824
1825
} else {
1826
end_ann.annotation_type = AnnotationType::Singleline;
0 commit comments