1
Fork 0

Include 'let' keyword to the span for ast::Local

This commit is contained in:
topecongiro 2017-08-12 18:00:57 +09:00
parent bffc973da8
commit 64503b6ee7

View file

@ -3587,7 +3587,7 @@ impl<'a> Parser<'a> {
/// Parse a local variable declaration
fn parse_local(&mut self, attrs: ThinVec<Attribute>) -> PResult<'a, P<Local>> {
let lo = self.span;
let lo = self.prev_span;
let pat = self.parse_pat()?;
let ty = if self.eat(&token::Colon) {