Remove a token after closing delimiter from the span of macro in type position
This commit is contained in:
parent
a9f047c048
commit
7374fdcf54
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue