Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Don't follow include! expansion to origin (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser authored and KalitaAlexey committed Mar 15, 2017
1 parent 072905a commit da4cbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cargo/diagnostic_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class DiagnosticParser {
}

// Following macro expansion to get correct file name and range.
while (primarySpan.expansion && primarySpan.expansion.span) {
while (primarySpan.expansion && primarySpan.expansion.span && primarySpan.expansion.macro_decl_name !== 'include!') {
primarySpan = primarySpan.expansion.span;
}

Expand Down

0 comments on commit da4cbac

Please sign in to comment.