Skip to content

Commit aa34c67

Browse files
committed
Span's PartialEq ignores expn_id, so compare sp.expn_id not sp
We already fixed the comparison at the top of this function.
1 parent 6f10eab commit aa34c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/diagnostic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ fn emit(dst: &mut EmitterWriter, cm: &codemap::CodeMap, rsp: RenderSpan,
453453
try!(highlight_lines(dst, cm, sp, lvl, cm.span_to_lines(sp)));
454454
}
455455
}
456-
if sp != COMMAND_LINE_SP && rsp.is_full_span() {
456+
if sp.expn_id != COMMAND_LINE_EXPN && rsp.is_full_span() {
457457
try!(print_macro_backtrace(dst, cm, sp));
458458
}
459459
match code {

0 commit comments

Comments
 (0)