Skip to content

Commit 382c004

Browse files
committed
Suppress the macro backtrace for fileline_note and fileline_help.
1 parent 5bc1961 commit 382c004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ fn emit(dst: &mut EmitterWriter, cm: &codemap::CodeMap, rsp: RenderSpan,
454454
try!(highlight_lines(dst, cm, sp, lvl, cm.span_to_lines(sp)));
455455
}
456456
}
457-
if sp != COMMAND_LINE_SP {
457+
if sp != COMMAND_LINE_SP && rsp.is_full_span() {
458458
try!(print_macro_backtrace(dst, cm, sp));
459459
}
460460
match code {

0 commit comments

Comments
 (0)