@@ -1386,7 +1386,7 @@ impl<'hir> Pat<'hir> {
1386
1386
1387
1387
use PatKind :: * ;
1388
1388
match self . kind {
1389
- Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Path ( _ ) | Err ( _) => true ,
1389
+ Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Err ( _) => true ,
1390
1390
Box ( s) | Deref ( s) | Ref ( s, _) | Binding ( .., Some ( s) ) | Guard ( s, _) => s. walk_short_ ( it) ,
1391
1391
Struct ( _, fields, _) => fields. iter ( ) . all ( |field| field. pat . walk_short_ ( it) ) ,
1392
1392
TupleStruct ( _, s, _) | Tuple ( s, _) | Or ( s) => s. iter ( ) . all ( |p| p. walk_short_ ( it) ) ,
@@ -1413,7 +1413,7 @@ impl<'hir> Pat<'hir> {
1413
1413
1414
1414
use PatKind :: * ;
1415
1415
match self . kind {
1416
- Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Path ( _ ) | Err ( _) => { }
1416
+ Wild | Never | Expr ( _) | Range ( ..) | Binding ( .., None ) | Err ( _) => { }
1417
1417
Box ( s) | Deref ( s) | Ref ( s, _) | Binding ( .., Some ( s) ) | Guard ( s, _) => s. walk_ ( it) ,
1418
1418
Struct ( _, fields, _) => fields. iter ( ) . for_each ( |field| field. pat . walk_ ( it) ) ,
1419
1419
TupleStruct ( _, s, _) | Tuple ( s, _) | Or ( s) => s. iter ( ) . for_each ( |p| p. walk_ ( it) ) ,
@@ -1521,6 +1521,7 @@ impl fmt::Debug for DotDotPos {
1521
1521
1522
1522
#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
1523
1523
pub struct PatExpr < ' hir > {
1524
+ #[ stable_hasher( ignore) ]
1524
1525
pub hir_id : HirId ,
1525
1526
pub span : Span ,
1526
1527
pub kind : PatExprKind < ' hir > ,
@@ -1566,9 +1567,6 @@ pub enum PatKind<'hir> {
1566
1567
/// A never pattern `!`.
1567
1568
Never ,
1568
1569
1569
- /// A path pattern for a unit struct/variant or a (maybe-associated) constant.
1570
- Path ( QPath < ' hir > ) ,
1571
-
1572
1570
/// A tuple pattern (e.g., `(a, b)`).
1573
1571
/// If the `..` pattern fragment is present, then `Option<usize>` denotes its position.
1574
1572
/// `0 <= position <= subpats.len()`
0 commit comments