@@ -339,27 +339,27 @@ impl<'tcx> LateLintPass<'tcx> for Functions {
339339 if sig. header . abi == Abi :: Rust {
340340 self . check_arg_number ( cx, & sig. decl , item. span . with_hi ( sig. decl . output . span ( ) . hi ( ) ) ) ;
341341 }
342- let is_public = cx. access_levels . is_exported ( item. hir_id ) ;
342+ let is_public = cx. access_levels . is_exported ( item. hir_id ( ) ) ;
343343 let fn_header_span = item. span . with_hi ( sig. decl . output . span ( ) . hi ( ) ) ;
344344 if is_public {
345345 check_result_unit_err ( cx, & sig. decl , item. span , fn_header_span) ;
346346 }
347347
348348 let attr = must_use_attr ( & item. attrs ) ;
349349 if let Some ( attr) = attr {
350- check_needless_must_use ( cx, & sig. decl , item. hir_id , item. span , fn_header_span, attr) ;
350+ check_needless_must_use ( cx, & sig. decl , item. hir_id ( ) , item. span , fn_header_span, attr) ;
351351 }
352352 if let hir:: TraitFn :: Provided ( eid) = * eid {
353353 let body = cx. tcx . hir ( ) . body ( eid) ;
354- Self :: check_raw_ptr ( cx, sig. header . unsafety , & sig. decl , body, item. hir_id ) ;
354+ Self :: check_raw_ptr ( cx, sig. header . unsafety , & sig. decl , body, item. hir_id ( ) ) ;
355355
356356 if attr. is_none ( ) && is_public && !is_proc_macro ( cx. sess ( ) , & item. attrs ) {
357357 check_must_use_candidate (
358358 cx,
359359 & sig. decl ,
360360 body,
361361 item. span ,
362- item. hir_id ,
362+ item. hir_id ( ) ,
363363 item. span . with_hi ( sig. decl . output . span ( ) . hi ( ) ) ,
364364 "this method could have a `#[must_use]` attribute" ,
365365 ) ;
0 commit comments