@@ -9,8 +9,8 @@ use rustc_data_structures::fx::FxIndexMap;
99use rustc_errors:: Applicability ;
1010use rustc_hir:: intravisit:: { walk_ty, Visitor } ;
1111use rustc_hir:: {
12- self as hir, BindingAnnotation , Body , BodyId , BorrowKind , Expr , ExprKind , HirId , MatchSource , Mutability , Node ,
13- Pat , PatKind , Path , QPath , TyKind , UnOp ,
12+ self as hir, BindingMode , Body , BodyId , BorrowKind , Expr , ExprKind , HirId , MatchSource , Mutability , Node , Pat ,
13+ PatKind , Path , QPath , TyKind , UnOp ,
1414} ;
1515use rustc_lint:: { LateContext , LateLintPass } ;
1616use rustc_middle:: ty:: adjustment:: { Adjust , Adjustment , AutoBorrow , AutoBorrowMutability } ;
@@ -599,7 +599,7 @@ impl<'tcx> LateLintPass<'tcx> for Dereferencing<'tcx> {
599599 }
600600
601601 fn check_pat ( & mut self , cx : & LateContext < ' tcx > , pat : & ' tcx Pat < ' _ > ) {
602- if let PatKind :: Binding ( BindingAnnotation :: REF , id, name, _) = pat. kind {
602+ if let PatKind :: Binding ( BindingMode :: REF , id, name, _) = pat. kind {
603603 if let Some ( opt_prev_pat) = self . ref_locals . get_mut ( & id) {
604604 // This binding id has been seen before. Add this pattern to the list of changes.
605605 if let Some ( prev_pat) = opt_prev_pat {
0 commit comments