diff options
| author | topecongiro <seuchida@gmail.com> | 2017-08-12 18:00:57 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-08-12 18:00:57 +0900 |
| commit | 64503b6ee7e6b861f5c1dc8e27a97cf231b59685 (patch) | |
| tree | 5fff01ab39bcc0d95771817096a089210cad0deb /src/libsyntax/parse/parser.rs | |
| parent | bffc973da8a7045d6ad5c678eab6fd57ab49ed54 (diff) | |
| download | rust-64503b6ee7e6b861f5c1dc8e27a97cf231b59685.tar.gz rust-64503b6ee7e6b861f5c1dc8e27a97cf231b59685.zip | |
Include 'let' keyword to the span for ast::Local
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 7bf4c6799b3..15f05df58b5 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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) { |
