@@ -123,7 +123,7 @@ use rustc_hir as hir;
123123use rustc_hir:: def:: { CtorOf , DefKind , Res } ;
124124use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , LOCAL_CRATE } ;
125125use rustc_hir:: intravisit:: { self , NestedVisitorMap , Visitor } ;
126- use rustc_hir:: itemlikevisit:: ItemLikeVisitor ;
126+ use rustc_hir:: itemlikevisit:: ParItemLikeVisitor ;
127127use rustc_hir:: { ExprKind , GenericArg , HirIdMap , Item , ItemKind , Node , PatKind , QPath } ;
128128use rustc_index:: vec:: Idx ;
129129use rustc_span:: hygiene:: DesugaringKind ;
@@ -729,12 +729,12 @@ struct CheckItemTypesVisitor<'tcx> {
729729 tcx : TyCtxt < ' tcx > ,
730730}
731731
732- impl ItemLikeVisitor < ' tcx > for CheckItemTypesVisitor < ' tcx > {
733- fn visit_item ( & mut self , i : & ' tcx hir:: Item < ' tcx > ) {
732+ impl ParItemLikeVisitor < ' tcx > for CheckItemTypesVisitor < ' tcx > {
733+ fn visit_item ( & self , i : & ' tcx hir:: Item < ' tcx > ) {
734734 check_item_type ( self . tcx , i) ;
735735 }
736- fn visit_trait_item ( & mut self , _: & ' tcx hir:: TraitItem < ' tcx > ) { }
737- fn visit_impl_item ( & mut self , _: & ' tcx hir:: ImplItem < ' tcx > ) { }
736+ fn visit_trait_item ( & self , _: & ' tcx hir:: TraitItem < ' tcx > ) { }
737+ fn visit_impl_item ( & self , _: & ' tcx hir:: ImplItem < ' tcx > ) { }
738738}
739739
740740pub fn check_wf_new ( tcx : TyCtxt < ' _ > ) {
@@ -743,7 +743,7 @@ pub fn check_wf_new(tcx: TyCtxt<'_>) {
743743}
744744
745745fn check_mod_item_types ( tcx : TyCtxt < ' _ > , module_def_id : DefId ) {
746- tcx. hir ( ) . visit_item_likes_in_module ( module_def_id, & mut CheckItemTypesVisitor { tcx } ) ;
746+ tcx. hir ( ) . par_visit_item_likes_in_module ( module_def_id, & CheckItemTypesVisitor { tcx } ) ;
747747}
748748
749749fn typeck_item_bodies ( tcx : TyCtxt < ' _ > , crate_num : CrateNum ) {
0 commit comments