@@ -644,7 +644,7 @@ impl<'tcx> Pat<'tcx> {
644644 AscribeUserType { subpattern, .. }
645645 | Binding { subpattern : Some ( subpattern) , .. }
646646 | Deref { subpattern }
647- | DerefPattern { subpattern }
647+ | DerefPattern { subpattern, .. }
648648 | InlineConstant { subpattern, .. } => subpattern. walk_ ( it) ,
649649 Leaf { subpatterns } | Variant { subpatterns, .. } => {
650650 subpatterns. iter ( ) . for_each ( |field| field. pattern . walk_ ( it) )
@@ -762,6 +762,7 @@ pub enum PatKind<'tcx> {
762762 /// Deref pattern, written `box P` for now.
763763 DerefPattern {
764764 subpattern : Box < Pat < ' tcx > > ,
765+ mutability : hir:: Mutability ,
765766 } ,
766767
767768 /// One of the following:
@@ -1165,7 +1166,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
11651166 }
11661167 write ! ( f, "{subpattern}" )
11671168 }
1168- PatKind :: DerefPattern { ref subpattern } => {
1169+ PatKind :: DerefPattern { ref subpattern, .. } => {
11691170 write ! ( f, "deref!({subpattern})" )
11701171 }
11711172 PatKind :: Constant { value } => write ! ( f, "{value}" ) ,
0 commit comments