@@ -645,7 +645,7 @@ impl<'tcx> Pat<'tcx> {
645
645
AscribeUserType { subpattern, .. }
646
646
| Binding { subpattern : Some ( subpattern) , .. }
647
647
| Deref { subpattern }
648
- | DerefPattern { subpattern }
648
+ | DerefPattern { subpattern, .. }
649
649
| InlineConstant { subpattern, .. } => subpattern. walk_ ( it) ,
650
650
Leaf { subpatterns } | Variant { subpatterns, .. } => {
651
651
subpatterns. iter ( ) . for_each ( |field| field. pattern . walk_ ( it) )
@@ -763,6 +763,7 @@ pub enum PatKind<'tcx> {
763
763
/// Deref pattern, written `box P` for now.
764
764
DerefPattern {
765
765
subpattern : Box < Pat < ' tcx > > ,
766
+ mutability : hir:: Mutability ,
766
767
} ,
767
768
768
769
/// One of the following:
@@ -1167,7 +1168,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
1167
1168
}
1168
1169
write ! ( f, "{subpattern}" )
1169
1170
}
1170
- PatKind :: DerefPattern { ref subpattern } => {
1171
+ PatKind :: DerefPattern { ref subpattern, .. } => {
1171
1172
write ! ( f, "deref!({subpattern})" )
1172
1173
}
1173
1174
PatKind :: Constant { value } => write ! ( f, "{value}" ) ,
0 commit comments