@@ -8,11 +8,10 @@ use rustc_arena::DroplessArena;
88use rustc_ast:: ast:: LitKind ;
99use rustc_errors:: Applicability ;
1010use rustc_hir:: def_id:: DefId ;
11- use rustc_hir:: { Arm , Expr , ExprKind , HirId , HirIdMap , HirIdSet , Pat , PatKind , RangeEnd } ;
11+ use rustc_hir:: { Arm , Expr , ExprKind , HirId , HirIdMap , HirIdMapEntry , HirIdSet , Pat , PatKind , RangeEnd } ;
1212use rustc_lint:: LateContext ;
1313use rustc_middle:: ty;
1414use rustc_span:: Symbol ;
15- use std:: collections:: hash_map:: Entry ;
1615
1716use super :: MATCH_SAME_ARMS ;
1817
@@ -71,9 +70,9 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, arms: &'tcx [Arm<'_>]) {
7170 if let Some ( a_id) = path_to_local( a) ;
7271 if let Some ( b_id) = path_to_local( b) ;
7372 let entry = match local_map. entry( a_id) {
74- Entry :: Vacant ( entry) => entry,
73+ HirIdMapEntry :: Vacant ( entry) => entry,
7574 // check if using the same bindings as before
76- Entry :: Occupied ( entry) => return * entry. get( ) == b_id,
75+ HirIdMapEntry :: Occupied ( entry) => return * entry. get( ) == b_id,
7776 } ;
7877 // the names technically don't have to match; this makes the lint more conservative
7978 if cx. tcx. hir( ) . name( a_id) == cx. tcx. hir( ) . name( b_id) ;
0 commit comments