Impl Copy for Token and TokenKind.

This commit is contained in:
Nicholas Nethercote
2024-05-16 09:22:37 +10:00
parent bb495d6d3e
commit 4d8f7577b5
20 changed files with 56 additions and 57 deletions

View File

@@ -168,7 +168,7 @@ impl<'a> Parser<'a> {
} else {
Err(self.dcx().create_err(UnexpectedNonterminal::Ident {
span: self.token.span,
token: self.token.clone(),
token: self.token,
}))
}
}
@@ -191,7 +191,7 @@ impl<'a> Parser<'a> {
} else {
Err(self.dcx().create_err(UnexpectedNonterminal::Lifetime {
span: self.token.span,
token: self.token.clone(),
token: self.token,
}))
}
}