Suppress the macro backtrace for fileline_note and fileline_help.

This commit is contained in:
Ryan Prichard 2015-04-05 18:07:11 -07:00
parent 5a8f102bf6
commit fab3295cba
2 changed files with 4 additions and 5 deletions

View file

@ -871,7 +871,7 @@ impl CodeMap {
F: FnOnce(Option<&ExpnInfo>) -> T,
{
match id {
NO_EXPANSION => f(None),
NO_EXPANSION | COMMAND_LINE_EXPN => f(None),
ExpnId(i) => f(Some(&(*self.expansions.borrow())[i as usize]))
}
}