@@ -1652,14 +1652,14 @@ fn check_for_mutability(cx: &LateContext<'_, '_>, bound: &Expr<'_>) -> Option<Hi
1652
1652
if let QPath :: Resolved ( None , _) = * qpath;
1653
1653
then {
1654
1654
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 ) ;
1657
1657
if_chain! {
1658
1658
if let Node :: Binding ( pat) = node_str;
1659
1659
if let PatKind :: Binding ( bind_ann, ..) = pat. kind;
1660
1660
if let BindingAnnotation :: Mutable = bind_ann;
1661
1661
then {
1662
- return Some ( node_id ) ;
1662
+ return Some ( hir_id ) ;
1663
1663
}
1664
1664
}
1665
1665
}
@@ -2184,8 +2184,8 @@ impl<'a, 'tcx> Visitor<'tcx> for InitializeVisitor<'a, 'tcx> {
2184
2184
fn var_def_id ( cx : & LateContext < ' _ , ' _ > , expr : & Expr < ' _ > ) -> Option < HirId > {
2185
2185
if let ExprKind :: Path ( ref qpath) = expr. kind {
2186
2186
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 ) ;
2189
2189
}
2190
2190
}
2191
2191
None
@@ -2422,8 +2422,8 @@ impl<'a, 'tcx> VarCollectorVisitor<'a, 'tcx> {
2422
2422
let res = qpath_res( self . cx, qpath, ex. hir_id) ;
2423
2423
then {
2424
2424
match res {
2425
- Res :: Local ( node_id ) => {
2426
- self . ids. insert( node_id ) ;
2425
+ Res :: Local ( hir_id ) => {
2426
+ self . ids. insert( hir_id ) ;
2427
2427
} ,
2428
2428
Res :: Def ( DefKind :: Static , def_id) => {
2429
2429
let mutable = self . cx. tcx. is_mutable_static( def_id) ;
0 commit comments