Skip to content

Commit 281dd6d

Browse files
committed
Explicitly write out all fields
1 parent 1d5acca commit 281dd6d

File tree

1 file changed

+12
-4
lines changed
  • compiler/rustc_mir_build/src/thir

1 file changed

+12
-4
lines changed

compiler/rustc_mir_build/src/thir/visit.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,19 @@ pub fn walk_arm<'a, 'tcx: 'a, V: Visitor<'a, 'tcx>>(visitor: &mut V, arm: &Arm<'
188188
pub fn walk_pat<'a, 'tcx: 'a, V: Visitor<'a, 'tcx>>(visitor: &mut V, pat: &Pat<'tcx>) {
189189
use PatKind::*;
190190
match pat.kind.as_ref() {
191-
AscribeUserType { subpattern, .. }
192-
| Deref { subpattern, .. }
193-
| Binding { subpattern: Some(subpattern), .. } => visitor.visit_pat(&subpattern),
191+
AscribeUserType { subpattern, ascription: _ }
192+
| Deref { subpattern }
193+
| Binding {
194+
subpattern: Some(subpattern),
195+
mutability: _,
196+
mode: _,
197+
var: _,
198+
ty: _,
199+
is_primary: _,
200+
name: _,
201+
} => visitor.visit_pat(&subpattern),
194202
Binding { .. } | Wild => {}
195-
Variant { subpatterns, .. } | Leaf { subpatterns } => {
203+
Variant { subpatterns, adt_def: _, substs: _, variant_index: _ } | Leaf { subpatterns } => {
196204
for subpattern in subpatterns {
197205
visitor.visit_pat(&subpattern.pattern);
198206
}

0 commit comments

Comments
 (0)