@@ -645,7 +645,7 @@ impl<'tcx> Pat<'tcx> {
645645 AscribeUserType { subpattern, .. }
646646 | Binding { subpattern : Some ( subpattern) , .. }
647647 | Deref { subpattern }
648- | DerefPattern { subpattern }
648+ | DerefPattern { subpattern, .. }
649649 | InlineConstant { subpattern, .. } => subpattern. walk_ ( it) ,
650650 Leaf { subpatterns } | Variant { subpatterns, .. } => {
651651 subpatterns. iter ( ) . for_each ( |field| field. pattern . walk_ ( it) )
@@ -763,6 +763,7 @@ pub enum PatKind<'tcx> {
763763 /// Deref pattern, written `box P` for now.
764764 DerefPattern {
765765 subpattern : Box < Pat < ' tcx > > ,
766+ mutability : hir:: Mutability ,
766767 } ,
767768
768769 /// One of the following:
@@ -1167,7 +1168,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
11671168 }
11681169 write ! ( f, "{subpattern}" )
11691170 }
1170- PatKind :: DerefPattern { ref subpattern } => {
1171+ PatKind :: DerefPattern { ref subpattern, .. } => {
11711172 write ! ( f, "deref!({subpattern})" )
11721173 }
11731174 PatKind :: Constant { value } => write ! ( f, "{value}" ) ,
0 commit comments