diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-10-07 22:22:51 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-10-28 18:05:08 +0300 |
| commit | 746b675c5aabc7a61443f16a37223720657544d2 (patch) | |
| tree | 63d9413addb96e2884e62e2a7deb01baab84fc37 /compiler/rustc_expand/src/mbe/macro_parser.rs | |
| parent | 0bff99403c03b891995976587e3c92cbf04ded4c (diff) | |
| download | rust-746b675c5aabc7a61443f16a37223720657544d2.tar.gz rust-746b675c5aabc7a61443f16a37223720657544d2.zip | |
fix clippy::clone_on_ref_ptr for compiler
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 3903203da3d..a08db612bbe 100644 --- a/compiler/rustc_expand/src/mbe/macro_parser.rs +++ b/compiler/rustc_expand/src/mbe/macro_parser.rs @@ -622,7 +622,7 @@ impl TtParser { // possible next positions into `next_mps`. After some post-processing, the contents of // `next_mps` replenish `cur_mps` and we start over again. self.cur_mps.clear(); - self.cur_mps.push(MatcherPos { idx: 0, matches: self.empty_matches.clone() }); + self.cur_mps.push(MatcherPos { idx: 0, matches: Rc::clone(&self.empty_matches) }); loop { self.next_mps.clear(); |
