diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2025-03-27 18:29:58 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-04-04 09:44:19 +0200 |
| commit | 3123df8ef0cc32318d96b90620396d8b22d2ffb3 (patch) | |
| tree | 28ee6de03c1eccf0558313bd560589323cd6e9f8 /compiler/rustc_ast/src/mut_visit.rs | |
| parent | 9e14530c7c27123484658c88c2148a552b01e73b (diff) | |
| download | rust-3123df8ef0cc32318d96b90620396d8b22d2ffb3.tar.gz rust-3123df8ef0cc32318d96b90620396d8b22d2ffb3.zip | |
Implement `super let`.
Diffstat (limited to 'compiler/rustc_ast/src/mut_visit.rs')
| -rw-r--r-- | compiler/rustc_ast/src/mut_visit.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/mut_visit.rs b/compiler/rustc_ast/src/mut_visit.rs index f7d13acdfc4..58af024dc16 100644 --- a/compiler/rustc_ast/src/mut_visit.rs +++ b/compiler/rustc_ast/src/mut_visit.rs @@ -704,7 +704,8 @@ fn walk_parenthesized_parameter_data<T: MutVisitor>(vis: &mut T, args: &mut Pare } fn walk_local<T: MutVisitor>(vis: &mut T, local: &mut P<Local>) { - let Local { id, pat, ty, kind, span, colon_sp, attrs, tokens } = local.deref_mut(); + let Local { id, super_, pat, ty, kind, span, colon_sp, attrs, tokens } = local.deref_mut(); + visit_opt(super_, |sp| vis.visit_span(sp)); vis.visit_id(id); visit_attrs(vis, attrs); vis.visit_pat(pat); |
