about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-16 09:22:37 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-02 16:16:49 +1100
commit4d8f7577b5f2f7c72d1e258c07b882d0afcf0956 (patch)
tree2d4c4fb9a4c2d22bae55e9f95c96cd665a152a2a /compiler/rustc_parse/src/parser/stmt.rs
parentbb495d6d3e6dae294f08162097bd85f904e9f90b (diff)
downloadrust-4d8f7577b5f2f7c72d1e258c07b882d0afcf0956.tar.gz
rust-4d8f7577b5f2f7c72d1e258c07b882d0afcf0956.zip
Impl `Copy` for `Token` and `TokenKind`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
-rw-r--r--compiler/rustc_parse/src/parser/stmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs
index 953bc303012..824e930aa88 100644
--- a/compiler/rustc_parse/src/parser/stmt.rs
+++ b/compiler/rustc_parse/src/parser/stmt.rs
@@ -685,7 +685,7 @@ impl<'a> Parser<'a> {
             return Ok((AttrVec::new(), block));
         }
 
-        let maybe_ident = self.prev_token.clone();
+        let maybe_ident = self.prev_token;
         self.maybe_recover_unexpected_block_label(loop_header);
         if !self.eat(exp!(OpenBrace)) {
             return self.error_block_no_opening_brace();