diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-16 14:25:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-16 14:25:56 +0200 |
| commit | 91847c43cc70d8d113185d46019ae93c3f92fb36 (patch) | |
| tree | f470aab06321102834b9287cae923ee5a4931df9 /compiler/rustc_expand/src/mbe/macro_parser.rs | |
| parent | 0a8acac7a316d89167045bb9cf9e279fe12d3a9c (diff) | |
| parent | bbd7ce690452f28d459643d97fbae89109cf5808 (diff) | |
| download | rust-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.rs | 2 |
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(); } |
