diff options
| author | Smitty <me@smitop.com> | 2021-06-17 10:17:35 -0400 |
|---|---|---|
| committer | Smitty <me@smitop.com> | 2021-06-17 10:17:35 -0400 |
| commit | 281dd6d6e00fd4be40917e2279884b780571506d (patch) | |
| tree | 20263b71cf0f40fde427ea92d8a00bce968ba78e | |
| parent | 1d5accabf1ae1d546f03e8776f0b0c36e14c70a7 (diff) | |
| download | rust-281dd6d6e00fd4be40917e2279884b780571506d.tar.gz rust-281dd6d6e00fd4be40917e2279884b780571506d.zip | |
Explicitly write out all fields
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/visit.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/compiler/rustc_mir_build/src/thir/visit.rs b/compiler/rustc_mir_build/src/thir/visit.rs index 8f7e3aff11f..12c6a9c00b2 100644 --- a/compiler/rustc_mir_build/src/thir/visit.rs +++ b/compiler/rustc_mir_build/src/thir/visit.rs @@ -188,11 +188,19 @@ pub fn walk_arm<'a, 'tcx: 'a, V: Visitor<'a, 'tcx>>(visitor: &mut V, arm: &Arm<' pub fn walk_pat<'a, 'tcx: 'a, V: Visitor<'a, 'tcx>>(visitor: &mut V, pat: &Pat<'tcx>) { use PatKind::*; match pat.kind.as_ref() { - AscribeUserType { subpattern, .. } - | Deref { subpattern, .. } - | Binding { subpattern: Some(subpattern), .. } => visitor.visit_pat(&subpattern), + AscribeUserType { subpattern, ascription: _ } + | Deref { subpattern } + | Binding { + subpattern: Some(subpattern), + mutability: _, + mode: _, + var: _, + ty: _, + is_primary: _, + name: _, + } => visitor.visit_pat(&subpattern), Binding { .. } | Wild => {} - Variant { subpatterns, .. } | Leaf { subpatterns } => { + Variant { subpatterns, adt_def: _, substs: _, variant_index: _ } | Leaf { subpatterns } => { for subpattern in subpatterns { visitor.visit_pat(&subpattern.pattern); } |
