Skip to content

Commit 7374fdc

Browse files
committed
Remove a token after closing delimiter from the span of macro in type position
1 parent a9f047c commit 7374fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ impl<'a> Parser<'a> {
15531553
if self.eat(&token::Not) {
15541554
// Macro invocation in type position
15551555
let (_, tts) = self.expect_delimited_token_tree()?;
1556-
TyKind::Mac(respan(lo.to(self.span), Mac_ { path: path, tts: tts }))
1556+
TyKind::Mac(respan(lo.to(self.prev_span), Mac_ { path: path, tts: tts }))
15571557
} else {
15581558
// Just a type path or bound list (trait object type) starting with a trait.
15591559
// `Type`

0 commit comments

Comments
 (0)