Skip to content

Commit e13e9a5

Browse files
committed
review comments
1 parent 326ec80 commit e13e9a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_errors/emitter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl EmitterWriter {
243243
end_col: hi.col_display,
244244
is_primary: span_label.is_primary,
245245
label: span_label.label.clone(),
246-
overlaps: false,
246+
overlaps_exactly: false,
247247
};
248248
multiline_annotations.push((lo.file.clone(), ml.clone()));
249249
AnnotationType::Multiline(ml)
@@ -277,7 +277,7 @@ impl EmitterWriter {
277277
{
278278
a.increase_depth();
279279
} else if ann.same_span(a) && &ann != a {
280-
a.overlaps = true;
280+
a.overlaps_exactly = true;
281281
} else {
282282
break;
283283
}
@@ -290,7 +290,7 @@ impl EmitterWriter {
290290
max_depth = ann.depth;
291291
}
292292
let mut end_ann = ann.as_end();
293-
if !ann.overlaps {
293+
if !ann.overlaps_exactly {
294294
// avoid output like
295295
//
296296
// | foo(

0 commit comments

Comments
 (0)