More accurate spans
This commit is contained in:
parent
b42ea7f9ef
commit
a0d8873097
3 changed files with 4 additions and 4 deletions
|
@ -2445,7 +2445,7 @@ pub impl Parser {
|
|||
}
|
||||
}
|
||||
}
|
||||
hi = self.span.hi;
|
||||
hi = self.last_span.hi;
|
||||
}
|
||||
}
|
||||
@ast::pat { id: self.get_id(), node: pat, span: mk_sp(lo, hi) }
|
||||
|
@ -4311,7 +4311,7 @@ pub impl Parser {
|
|||
rp: None,
|
||||
types: ~[] };
|
||||
return @spanned(lo,
|
||||
self.span.hi,
|
||||
self.last_span.hi,
|
||||
view_path_simple(last, path, self.get_id()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue