@@ -1781,7 +1781,7 @@ impl<'a, 'tcx> VarVisitor<'a, 'tcx> {
17811781 if index_used_directly {
17821782 self . indexed_directly. insert(
17831783 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) ) ,
17851785 ) ;
17861786 }
17871787 return false ; // no need to walk further *on the variable*
@@ -1793,7 +1793,7 @@ impl<'a, 'tcx> VarVisitor<'a, 'tcx> {
17931793 if index_used_directly {
17941794 self . indexed_directly. insert(
17951795 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) ) ,
17971797 ) ;
17981798 }
17991799 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>
24182418 if let Some ( ref generic_args) = chain_method. args;
24192419 if let Some ( GenericArg :: Type ( ref ty) ) = generic_args. args. get( 0 ) ;
24202420 then {
2421- let ty = cx. tables. node_id_to_type ( ty. hir_id) ;
2421+ let ty = cx. tables. node_type ( ty. hir_id) ;
24222422 if match_type( cx, ty, & paths:: VEC ) ||
24232423 match_type( cx, ty, & paths:: VEC_DEQUE ) ||
24242424 match_type( cx, ty, & paths:: BTREEMAP ) ||
0 commit comments