diff options
| author | topecongiro <seuchida@gmail.com> | 2017-12-19 17:54:39 +0900 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2017-12-19 21:18:30 +0900 |
| commit | 7374fdcf541ff92449112a539345e48a27edc45e (patch) | |
| tree | 48fb5816c6293a6457e365dfdf2d44786eb091a1 /src/libsyntax/parse/parser.rs | |
| parent | a9f047c048eac4f135dd6df5223b7195d651539d (diff) | |
| download | rust-7374fdcf541ff92449112a539345e48a27edc45e.tar.gz rust-7374fdcf541ff92449112a539345e48a27edc45e.zip | |
Remove a token after closing delimiter from the span of macro in type position
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 c3dd17e8775..74ec11b83c7 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1553,7 +1553,7 @@ impl<'a> Parser<'a> { if self.eat(&token::Not) { // Macro invocation in type position let (_, tts) = self.expect_delimited_token_tree()?; - TyKind::Mac(respan(lo.to(self.span), Mac_ { path: path, tts: tts })) + TyKind::Mac(respan(lo.to(self.prev_span), Mac_ { path: path, tts: tts })) } else { // Just a type path or bound list (trait object type) starting with a trait. // `Type` |
