@@ -14,7 +14,7 @@ use syntax::feature_gate::{self, GateIssue};
1414use syntax_pos:: Span ;
1515use errors:: { DiagnosticBuilder , DiagnosticId } ;
1616
17- use rustc:: hir:: itemlikevisit:: ItemLikeVisitor ;
17+ use rustc:: hir:: itemlikevisit:: ParItemLikeVisitor ;
1818use rustc:: hir;
1919
2020/// Helper type of a temporary returned by `.for_item(...)`.
@@ -1015,20 +1015,20 @@ impl<'a, 'gcx> CheckTypeWellFormedVisitor<'a, 'gcx> {
10151015 }
10161016}
10171017
1018- impl < ' a , ' tcx > ItemLikeVisitor < ' tcx > for CheckTypeWellFormedVisitor < ' a , ' tcx > {
1019- fn visit_item ( & mut self , i : & ' tcx hir:: Item ) {
1018+ impl < ' a , ' tcx > ParItemLikeVisitor < ' tcx > for CheckTypeWellFormedVisitor < ' a , ' tcx > {
1019+ fn visit_item ( & self , i : & ' tcx hir:: Item ) {
10201020 debug ! ( "visit_item: {:?}" , i) ;
10211021 let def_id = self . tcx . hir ( ) . local_def_id_from_hir_id ( i. hir_id ) ;
10221022 self . tcx . ensure ( ) . check_item_well_formed ( def_id) ;
10231023 }
10241024
1025- fn visit_trait_item ( & mut self , trait_item : & ' tcx hir:: TraitItem ) {
1025+ fn visit_trait_item ( & self , trait_item : & ' tcx hir:: TraitItem ) {
10261026 debug ! ( "visit_trait_item: {:?}" , trait_item) ;
10271027 let def_id = self . tcx . hir ( ) . local_def_id_from_hir_id ( trait_item. hir_id ) ;
10281028 self . tcx . ensure ( ) . check_trait_item_well_formed ( def_id) ;
10291029 }
10301030
1031- fn visit_impl_item ( & mut self , impl_item : & ' tcx hir:: ImplItem ) {
1031+ fn visit_impl_item ( & self , impl_item : & ' tcx hir:: ImplItem ) {
10321032 debug ! ( "visit_impl_item: {:?}" , impl_item) ;
10331033 let def_id = self . tcx . hir ( ) . local_def_id_from_hir_id ( impl_item. hir_id ) ;
10341034 self . tcx . ensure ( ) . check_impl_item_well_formed ( def_id) ;
0 commit comments