Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review comments
  • Loading branch information
estebank committed Mar 29, 2019
commit e13e9a5d636116455aab6940d27bbc1b450aa003
6 changes: 3 additions & 3 deletions src/librustc_errors/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl EmitterWriter {
end_col: hi.col_display,
is_primary: span_label.is_primary,
label: span_label.label.clone(),
overlaps: false,
overlaps_exactly: false,
};
multiline_annotations.push((lo.file.clone(), ml.clone()));
AnnotationType::Multiline(ml)
Expand Down Expand Up @@ -277,7 +277,7 @@ impl EmitterWriter {
{
a.increase_depth();
} else if ann.same_span(a) && &ann != a {
a.overlaps = true;
a.overlaps_exactly = true;
} else {
break;
}
Expand All @@ -290,7 +290,7 @@ impl EmitterWriter {
max_depth = ann.depth;
}
let mut end_ann = ann.as_end();
if !ann.overlaps {
if !ann.overlaps_exactly {
// avoid output like
//
// | foo(
Expand Down