We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7613b15 commit 01f42eeCopy full SHA for 01f42ee
src/libsyntax/parse/parser.rs
@@ -4925,14 +4925,15 @@ impl Parser {
4925
token::EQ => {
4926
// x = foo::bar
4927
self.bump();
4928
+ let path_lo = self.span.lo;
4929
path = ~[self.parse_ident()];
4930
while self.token == token::MOD_SEP {
4931
4932
let id = self.parse_ident();
4933
path.push(id);
4934
}
4935
let path = ast::Path {
- span: mk_sp(lo, self.span.hi),
4936
+ span: mk_sp(path_lo, self.span.hi),
4937
global: false,
4938
segments: path.move_iter().map(|identifier| {
4939
ast::PathSegment {
0 commit comments