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