@@ -1652,14 +1652,14 @@ fn check_for_mutability(cx: &LateContext<'_, '_>, bound: &Expr<'_>) -> Option<Hi
16521652 if let QPath :: Resolved ( None , _) = * qpath;
16531653 then {
16541654 let res = qpath_res( cx, qpath, bound. hir_id) ;
1655- if let Res :: Local ( node_id ) = res {
1656- let node_str = cx. tcx. hir( ) . get( node_id ) ;
1655+ if let Res :: Local ( hir_id ) = res {
1656+ let node_str = cx. tcx. hir( ) . get( hir_id ) ;
16571657 if_chain! {
16581658 if let Node :: Binding ( pat) = node_str;
16591659 if let PatKind :: Binding ( bind_ann, ..) = pat. kind;
16601660 if let BindingAnnotation :: Mutable = bind_ann;
16611661 then {
1662- return Some ( node_id ) ;
1662+ return Some ( hir_id ) ;
16631663 }
16641664 }
16651665 }
@@ -2184,8 +2184,8 @@ impl<'a, 'tcx> Visitor<'tcx> for InitializeVisitor<'a, 'tcx> {
21842184fn var_def_id ( cx : & LateContext < ' _ , ' _ > , expr : & Expr < ' _ > ) -> Option < HirId > {
21852185 if let ExprKind :: Path ( ref qpath) = expr. kind {
21862186 let path_res = qpath_res ( cx, qpath, expr. hir_id ) ;
2187- if let Res :: Local ( node_id ) = path_res {
2188- return Some ( node_id ) ;
2187+ if let Res :: Local ( hir_id ) = path_res {
2188+ return Some ( hir_id ) ;
21892189 }
21902190 }
21912191 None
@@ -2422,8 +2422,8 @@ impl<'a, 'tcx> VarCollectorVisitor<'a, 'tcx> {
24222422 let res = qpath_res( self . cx, qpath, ex. hir_id) ;
24232423 then {
24242424 match res {
2425- Res :: Local ( node_id ) => {
2426- self . ids. insert( node_id ) ;
2425+ Res :: Local ( hir_id ) => {
2426+ self . ids. insert( hir_id ) ;
24272427 } ,
24282428 Res :: Def ( DefKind :: Static , def_id) => {
24292429 let mutable = self . cx. tcx. is_mutable_static( def_id) ;
0 commit comments