save-analysis: be more paranoid about generated paths

fixes https://github.com/rust-lang-nursery/rls/issues/160
This commit is contained in:
Nick Cameron 2017-02-02 16:23:27 +13:00
parent 24055d0f2a
commit 395f23c9f7
2 changed files with 4 additions and 0 deletions

View file

@ -1693,6 +1693,7 @@ impl<'a> Parser<'a> {
}
// Assemble the span.
// FIXME(#39450) This is bogus if part of the path is macro generated.
let span = mk_sp(lo, self.prev_span.hi);
// Assemble the result.