@@ -1386,7 +1386,7 @@ impl<'hir> Pat<'hir> {
13861386
13871387 use PatKind :: * ;
13881388 match self . kind {
1389- Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Path ( _ ) | Err ( _) => true ,
1389+ Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Err ( _) => true ,
13901390 Box ( s) | Deref ( s) | Ref ( s, _) | Binding ( .., Some ( s) ) | Guard ( s, _) => s. walk_short_ ( it) ,
13911391 Struct ( _, fields, _) => fields. iter ( ) . all ( |field| field. pat . walk_short_ ( it) ) ,
13921392 TupleStruct ( _, s, _) | Tuple ( s, _) | Or ( s) => s. iter ( ) . all ( |p| p. walk_short_ ( it) ) ,
@@ -1413,7 +1413,7 @@ impl<'hir> Pat<'hir> {
14131413
14141414 use PatKind :: * ;
14151415 match self . kind {
1416- Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Path ( _ ) | Err ( _) => { }
1416+ Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Err ( _) => { }
14171417 Box ( s) | Deref ( s) | Ref ( s, _) | Binding ( .., Some ( s) ) | Guard ( s, _) => s. walk_ ( it) ,
14181418 Struct ( _, fields, _) => fields. iter ( ) . for_each ( |field| field. pat . walk_ ( it) ) ,
14191419 TupleStruct ( _, s, _) | Tuple ( s, _) | Or ( s) => s. iter ( ) . for_each ( |p| p. walk_ ( it) ) ,
@@ -1521,6 +1521,7 @@ impl fmt::Debug for DotDotPos {
15211521
15221522#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
15231523pub struct PatExpr < ' hir > {
1524+ #[ stable_hasher( ignore) ]
15241525 pub hir_id : HirId ,
15251526 pub span : Span ,
15261527 pub kind : PatExprKind < ' hir > ,
@@ -1566,9 +1567,6 @@ pub enum PatKind<'hir> {
15661567 /// A never pattern `!`.
15671568 Never ,
15681569
1569- /// A path pattern for a unit struct/variant or a (maybe-associated) constant.
1570- Path ( QPath < ' hir > ) ,
1571-
15721570 /// A tuple pattern (e.g., `(a, b)`).
15731571 /// If the `..` pattern fragment is present, then `Option<usize>` denotes its position.
15741572 /// `0 <= position <= subpats.len()`
0 commit comments