diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2025-06-11 23:14:10 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2025-06-19 17:50:44 +0800 |
| commit | 3da58e673a723378942fc1828e45956025c97569 (patch) | |
| tree | 988513a37fba3110a57e07c43febddb14c9f4932 /compiler/rustc_expand/src/placeholders.rs | |
| parent | 4eaca5d1def1347e3c31bd549f419258a2bd6004 (diff) | |
| download | rust-3da58e673a723378942fc1828e45956025c97569.tar.gz rust-3da58e673a723378942fc1828e45956025c97569.zip | |
completely deduplicate `Visitor` and `MutVisitor`
Diffstat (limited to 'compiler/rustc_expand/src/placeholders.rs')
| -rw-r--r-- | compiler/rustc_expand/src/placeholders.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/placeholders.rs b/compiler/rustc_expand/src/placeholders.rs index 2c486a02bdf..6e1c6df4bcb 100644 --- a/compiler/rustc_expand/src/placeholders.rs +++ b/compiler/rustc_expand/src/placeholders.rs @@ -339,9 +339,9 @@ impl MutVisitor for PlaceholderExpander { } } - fn visit_method_receiver_expr(&mut self, expr: &mut P<ast::Expr>) { + fn visit_method_receiver_expr(&mut self, expr: &mut ast::Expr) { match expr.kind { - ast::ExprKind::MacCall(_) => *expr = self.remove(expr.id).make_method_receiver_expr(), + ast::ExprKind::MacCall(_) => *expr = *self.remove(expr.id).make_method_receiver_expr(), _ => walk_expr(self, expr), } } |
