@@ -1781,7 +1781,7 @@ impl<'a, 'tcx> VarVisitor<'a, 'tcx> {
1781
1781
if index_used_directly {
1782
1782
self . indexed_directly. insert(
1783
1783
seqvar. segments[ 0 ] . ident. name,
1784
- ( Some ( extent) , self . cx. tables. node_id_to_type ( seqexpr. hir_id) ) ,
1784
+ ( Some ( extent) , self . cx. tables. node_type ( seqexpr. hir_id) ) ,
1785
1785
) ;
1786
1786
}
1787
1787
return false ; // no need to walk further *on the variable*
@@ -1793,7 +1793,7 @@ impl<'a, 'tcx> VarVisitor<'a, 'tcx> {
1793
1793
if index_used_directly {
1794
1794
self . indexed_directly. insert(
1795
1795
seqvar. segments[ 0 ] . ident. name,
1796
- ( None , self . cx. tables. node_id_to_type ( seqexpr. hir_id) ) ,
1796
+ ( None , self . cx. tables. node_type ( seqexpr. hir_id) ) ,
1797
1797
) ;
1798
1798
}
1799
1799
return false ; // no need to walk further *on the variable*
@@ -2418,7 +2418,7 @@ fn check_needless_collect<'a, 'tcx>(expr: &'tcx Expr, cx: &LateContext<'a, 'tcx>
2418
2418
if let Some ( ref generic_args) = chain_method. args;
2419
2419
if let Some ( GenericArg :: Type ( ref ty) ) = generic_args. args. get( 0 ) ;
2420
2420
then {
2421
- let ty = cx. tables. node_id_to_type ( ty. hir_id) ;
2421
+ let ty = cx. tables. node_type ( ty. hir_id) ;
2422
2422
if match_type( cx, ty, & paths:: VEC ) ||
2423
2423
match_type( cx, ty, & paths:: VEC_DEQUE ) ||
2424
2424
match_type( cx, ty, & paths:: BTREEMAP ) ||
0 commit comments