@@ -642,7 +642,7 @@ impl<'tcx> Pat<'tcx> {
642642 AscribeUserType { subpattern, .. }
643643 | Binding { subpattern : Some ( subpattern) , .. }
644644 | Deref { subpattern }
645- | DerefPattern { subpattern }
645+ | DerefPattern { subpattern, .. }
646646 | InlineConstant { subpattern, .. } => subpattern. walk_ ( it) ,
647647 Leaf { subpatterns } | Variant { subpatterns, .. } => {
648648 subpatterns. iter ( ) . for_each ( |field| field. pattern . walk_ ( it) )
@@ -760,6 +760,7 @@ pub enum PatKind<'tcx> {
760760 /// Deref pattern, written `box P` for now.
761761 DerefPattern {
762762 subpattern : Box < Pat < ' tcx > > ,
763+ mutability : hir:: Mutability ,
763764 } ,
764765
765766 /// One of the following:
@@ -1163,7 +1164,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
11631164 }
11641165 write ! ( f, "{subpattern}" )
11651166 }
1166- PatKind :: DerefPattern { ref subpattern } => {
1167+ PatKind :: DerefPattern { ref subpattern, .. } => {
11671168 write ! ( f, "deref!({subpattern})" )
11681169 }
11691170 PatKind :: Constant { value } => write ! ( f, "{value}" ) ,
0 commit comments