about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/mbe/macro_parser.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-16 14:25:56 +0200
committerGitHub <noreply@github.com>2022-04-16 14:25:56 +0200
commit91847c43cc70d8d113185d46019ae93c3f92fb36 (patch)
treef470aab06321102834b9287cae923ee5a4931df9 /compiler/rustc_expand/src/mbe/macro_parser.rs
parent0a8acac7a316d89167045bb9cf9e279fe12d3a9c (diff)
parentbbd7ce690452f28d459643d97fbae89109cf5808 (diff)
downloadrust-91847c43cc70d8d113185d46019ae93c3f92fb36.tar.gz
rust-91847c43cc70d8d113185d46019ae93c3f92fb36.zip
Rollup merge of #96023 - matthiaskrgr:clippyper1304, r=lcnr
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 63aac64989d..8f260e1cdb5 100644
--- a/compiler/rustc_expand/src/mbe/macro_parser.rs
+++ b/compiler/rustc_expand/src/mbe/macro_parser.rs
@@ -590,7 +590,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();
                 }