@@ -489,7 +489,7 @@ impl<'map> IdVisitingOperation for RenamingRecorder<'map> {
489
489
impl < ' a , ' tcx > Folder for StaticInliner < ' a , ' tcx > {
490
490
fn fold_pat ( & mut self , pat : P < Pat > ) -> P < Pat > {
491
491
return match pat. node {
492
- PatKind :: Path ( ..) | PatKind :: QPath ( .. ) => {
492
+ PatKind :: Path ( ..) => {
493
493
match self . tcx . expect_def ( pat. id ) {
494
494
Def :: AssociatedConst ( did) | Def :: Const ( did) => {
495
495
let substs = Some ( self . tcx . node_id_item_substs ( pat. id ) . substs ) ;
@@ -583,7 +583,7 @@ fn construct_witness<'a,'tcx>(cx: &MatchCheckCtxt<'a,'tcx>, ctor: &Constructor,
583
583
PatKind :: TupleStruct ( def_to_path ( cx. tcx , v. did ) , pats. collect ( ) , None )
584
584
}
585
585
VariantKind :: Unit => {
586
- PatKind :: Path ( def_to_path ( cx. tcx , v. did ) )
586
+ PatKind :: Path ( None , def_to_path ( cx. tcx , v. did ) )
587
587
}
588
588
}
589
589
}
@@ -784,7 +784,7 @@ fn pat_constructors(cx: &MatchCheckCtxt, p: &Pat,
784
784
left_ty : Ty , max_slice_length : usize ) -> Vec < Constructor > {
785
785
let pat = raw_pat ( p) ;
786
786
match pat. node {
787
- PatKind :: Struct ( ..) | PatKind :: TupleStruct ( ..) | PatKind :: Path ( ..) | PatKind :: QPath ( .. ) =>
787
+ PatKind :: Struct ( ..) | PatKind :: TupleStruct ( ..) | PatKind :: Path ( ..) =>
788
788
match cx. tcx . expect_def ( pat. id ) {
789
789
Def :: Variant ( _, id) => vec ! [ Variant ( id) ] ,
790
790
Def :: Struct ( ..) | Def :: TyAlias ( ..) | Def :: AssociatedTy ( ..) => vec ! [ Single ] ,
@@ -895,7 +895,7 @@ pub fn specialize<'a, 'b, 'tcx>(
895
895
PatKind :: Binding ( ..) | PatKind :: Wild =>
896
896
Some ( vec ! [ dummy_pat; arity] ) ,
897
897
898
- PatKind :: Path ( ..) | PatKind :: QPath ( .. ) => {
898
+ PatKind :: Path ( ..) => {
899
899
match cx. tcx . expect_def ( pat_id) {
900
900
Def :: Const ( ..) | Def :: AssociatedConst ( ..) =>
901
901
span_bug ! ( pat_span, "const pattern should've \
0 commit comments