@@ -489,7 +489,7 @@ impl<'map> IdVisitingOperation for RenamingRecorder<'map> {
489489impl < ' a ,  ' tcx >  Folder  for  StaticInliner < ' a ,  ' tcx >  { 
490490    fn  fold_pat ( & mut  self ,  pat :  P < Pat > )  -> P < Pat >  { 
491491        return  match  pat. node  { 
492-             PatKind :: Path ( ..)  |  PatKind :: QPath ( .. )   => { 
492+             PatKind :: Path ( ..)  => { 
493493                match  self . tcx . expect_def ( pat. id )  { 
494494                    Def :: AssociatedConst ( did)  | Def :: Const ( did)  => { 
495495                        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,
583583                    PatKind :: TupleStruct ( def_to_path ( cx. tcx ,  v. did ) ,  pats. collect ( ) ,  None ) 
584584                } 
585585                VariantKind :: Unit  => { 
586-                     PatKind :: Path ( def_to_path ( cx. tcx ,  v. did ) ) 
586+                     PatKind :: Path ( None ,   def_to_path ( cx. tcx ,  v. did ) ) 
587587                } 
588588            } 
589589        } 
@@ -784,7 +784,7 @@ fn pat_constructors(cx: &MatchCheckCtxt, p: &Pat,
784784                    left_ty :  Ty ,  max_slice_length :  usize )  -> Vec < Constructor >  { 
785785    let  pat = raw_pat ( p) ; 
786786    match  pat. node  { 
787-         PatKind :: Struct ( ..)  | PatKind :: TupleStruct ( ..)  | PatKind :: Path ( ..)  |  PatKind :: QPath ( .. )   =>
787+         PatKind :: Struct ( ..)  | PatKind :: TupleStruct ( ..)  | PatKind :: Path ( ..)  =>
788788            match  cx. tcx . expect_def ( pat. id )  { 
789789                Def :: Variant ( _,  id)  => vec ! [ Variant ( id) ] , 
790790                Def :: Struct ( ..)  | Def :: TyAlias ( ..)  | Def :: AssociatedTy ( ..)  => vec ! [ Single ] , 
@@ -895,7 +895,7 @@ pub fn specialize<'a, 'b, 'tcx>(
895895        PatKind :: Binding ( ..)  | PatKind :: Wild  =>
896896            Some ( vec ! [ dummy_pat;  arity] ) , 
897897
898-         PatKind :: Path ( ..)  |  PatKind :: QPath ( .. )   => { 
898+         PatKind :: Path ( ..)  => { 
899899            match  cx. tcx . expect_def ( pat_id)  { 
900900                Def :: Const ( ..)  | Def :: AssociatedConst ( ..)  =>
901901                    span_bug ! ( pat_span,  "const pattern should've \  
0 commit comments