diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-12 13:34:24 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-12 21:00:03 +0400 |
| commit | c2dbd62c7c60cd4017c9d499101e40c129e4bc61 (patch) | |
| tree | 2b995dbbc34a3a74ea4ff4b8a6dcbd3b66198afa /compiler/rustc_ast | |
| parent | f89ef3cf66206b7c0ba0ca134de40b567c7bda83 (diff) | |
| download | rust-c2dbd62c7c60cd4017c9d499101e40c129e4bc61.tar.gz rust-c2dbd62c7c60cd4017c9d499101e40c129e4bc61.zip | |
Lower closure binders to hir & properly check them
Diffstat (limited to 'compiler/rustc_ast')
| -rw-r--r-- | compiler/rustc_ast/src/visit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/visit.rs b/compiler/rustc_ast/src/visit.rs index 327fc505e99..3f830acbf27 100644 --- a/compiler/rustc_ast/src/visit.rs +++ b/compiler/rustc_ast/src/visit.rs @@ -642,7 +642,7 @@ pub fn walk_generics<'a, V: Visitor<'a>>(visitor: &mut V, generics: &'a Generics pub fn walk_closure_binder<'a, V: Visitor<'a>>(visitor: &mut V, binder: &'a ClosureBinder) { match binder { ClosureBinder::NotPresent => {} - ClosureBinder::For { span: _, generic_params } => { + ClosureBinder::For { generic_params, span: _ } => { walk_list!(visitor, visit_generic_param, generic_params) } } |
