about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/mbe/macro_parser.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
commitbbd7ce690452f28d459643d97fbae89109cf5808 (patch)
treef5724f95a121a164d45952c104300ea96d2f3cd3 /compiler/rustc_expand/src/mbe/macro_parser.rs
parent0d13f6afeba4935499abe0c9a07426c94492c94e (diff)
downloadrust-bbd7ce690452f28d459643d97fbae89109cf5808.tar.gz
rust-bbd7ce690452f28d459643d97fbae89109cf5808.zip
couple of clippy::perf fixes
Diffstat (limited to 'compiler/rustc_expand/src/mbe/macro_parser.rs')
-rw-r--r--compiler/rustc_expand/src/mbe/macro_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_parser.rs b/compiler/rustc_expand/src/mbe/macro_parser.rs
index b5f56d7d6dc..cda3d0fd2bf 100644
--- a/compiler/rustc_expand/src/mbe/macro_parser.rs
+++ b/compiler/rustc_expand/src/mbe/macro_parser.rs
@@ -589,7 +589,7 @@ impl TtParser {
                 (_, 0) => {
                     // Dump all possible `next_mps` into `cur_mps` for the next iteration. Then
                     // process the next token.
-                    self.cur_mps.extend(self.next_mps.drain(..));
+                    self.cur_mps.append(&mut self.next_mps);
                     parser.to_mut().bump();
                 }