diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-16 09:22:37 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-02 16:16:49 +1100 |
| commit | 4d8f7577b5f2f7c72d1e258c07b882d0afcf0956 (patch) | |
| tree | 2d4c4fb9a4c2d22bae55e9f95c96cd665a152a2a /compiler/rustc_parse/src/parser/path.rs | |
| parent | bb495d6d3e6dae294f08162097bd85f904e9f90b (diff) | |
| download | rust-4d8f7577b5f2f7c72d1e258c07b882d0afcf0956.tar.gz rust-4d8f7577b5f2f7c72d1e258c07b882d0afcf0956.zip | |
Impl `Copy` for `Token` and `TokenKind`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs index 9c6830c3672..30fb96c6ea9 100644 --- a/compiler/rustc_parse/src/parser/path.rs +++ b/compiler/rustc_parse/src/parser/path.rs @@ -393,8 +393,8 @@ impl<'a> Parser<'a> { } else { // `(T, U) -> R` - let prev_token_before_parsing = self.prev_token.clone(); - let token_before_parsing = self.token.clone(); + let prev_token_before_parsing = self.prev_token; + let token_before_parsing = self.token; let mut snapshot = None; if self.may_recover() && prev_token_before_parsing == token::PathSep |
