Skip to content

Commit 64503b6

Browse files
committed
Include 'let' keyword to the span for ast::Local
1 parent bffc973 commit 64503b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3587,7 +3587,7 @@ impl<'a> Parser<'a> {
35873587

35883588
/// Parse a local variable declaration
35893589
fn parse_local(&mut self, attrs: ThinVec<Attribute>) -> PResult<'a, P<Local>> {
3590-
let lo = self.span;
3590+
let lo = self.prev_span;
35913591
let pat = self.parse_pat()?;
35923592

35933593
let ty = if self.eat(&token::Colon) {

0 commit comments

Comments
 (0)