diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2023-11-27 03:15:56 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2023-12-03 12:25:46 +0100 |
| commit | 80bdcbf50a63845dd3cfeb05751ba3dcbd1025b8 (patch) | |
| tree | 3309db5b82d4bc8d8d30ffd0e02d96137f5853f9 /compiler/rustc_resolve/src | |
| parent | caa488b96e65131e4d70f219d5e89008031f9229 (diff) | |
| download | rust-80bdcbf50a63845dd3cfeb05751ba3dcbd1025b8.tar.gz rust-80bdcbf50a63845dd3cfeb05751ba3dcbd1025b8.zip | |
Parse a pattern with no arm
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 75a0541b89b..5a139244640 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -3294,7 +3294,7 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> { self.with_rib(ValueNS, RibKind::Normal, |this| { this.resolve_pattern_top(&arm.pat, PatternSource::Match); walk_list!(this, visit_expr, &arm.guard); - this.visit_expr(&arm.body); + walk_list!(this, visit_expr, &arm.body); }); } |
