Include 'let' keyword to the span for ast::Local
This commit is contained in:
parent
bffc973da8
commit
64503b6ee7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue