@@ -1685,7 +1685,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
16851685 return ;
16861686 }
16871687 let name = impl_item. ident . name . as_str ( ) ;
1688- let parent = cx. tcx . hir ( ) . get_parent_item ( impl_item. hir_id ) ;
1688+ let parent = cx. tcx . hir ( ) . get_parent_item ( impl_item. hir_id ( ) ) ;
16891689 let item = cx. tcx . hir ( ) . expect_item ( parent) ;
16901690 let self_ty = cx. tcx . type_of ( item. def_id ) ;
16911691
@@ -1698,8 +1698,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
16981698 if let hir:: ImplItemKind :: Fn ( ref sig, id) = impl_item. kind;
16991699 if let Some ( first_arg) = iter_input_pats( & sig. decl, cx. tcx. hir( ) . body( id) ) . next( ) ;
17001700
1701- let method_def_id = cx. tcx. hir( ) . local_def_id( impl_item. hir_id) ;
1702- let method_sig = cx. tcx. fn_sig( method_def_id) ;
1701+ let method_sig = cx. tcx. fn_sig( impl_item. def_id) ;
17031702 let method_sig = cx. tcx. erase_late_bound_regions( method_sig) ;
17041703
17051704 let first_arg_ty = & method_sig. inputs( ) . iter( ) . next( ) ;
@@ -1708,7 +1707,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
17081707 if let Some ( first_arg_ty) = first_arg_ty;
17091708
17101709 then {
1711- if cx. access_levels. is_exported( impl_item. hir_id) {
1710+ if cx. access_levels. is_exported( impl_item. hir_id( ) ) {
17121711 // check missing trait implementations
17131712 for method_config in & TRAIT_METHODS {
17141713 if name == method_config. method_name &&
@@ -1750,7 +1749,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
17501749 }
17511750
17521751 if let hir:: ImplItemKind :: Fn ( _, _) = impl_item. kind {
1753- let ret_ty = return_ty ( cx, impl_item. hir_id ) ;
1752+ let ret_ty = return_ty ( cx, impl_item. hir_id ( ) ) ;
17541753
17551754 // walk the return type and check for Self (this does not check associated types)
17561755 if contains_ty ( ret_ty, self_ty) {
0 commit comments