about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2017-02-02 16:23:27 +1300
committerNick Cameron <ncameron@mozilla.com>2017-02-02 16:23:27 +1300
commit395f23c9f7c7e1107dce5a05e71b3a9480d4e331 (patch)
treea0b110d257c297dbc0a410d3b50e105804a2bd97 /src/libsyntax/parse
parent24055d0f2aa8dce5caed7544e6006aa48dceaea5 (diff)
downloadrust-395f23c9f7c7e1107dce5a05e71b3a9480d4e331.tar.gz
rust-395f23c9f7c7e1107dce5a05e71b3a9480d4e331.zip
save-analysis: be more paranoid about generated paths
fixes https://github.com/rust-lang-nursery/rls/issues/160
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 3480db8ec3b..d2bc7bf4f48 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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.