@@ -9,8 +9,8 @@ use rustc_data_structures::fx::FxIndexMap;
9
9
use rustc_errors:: Applicability ;
10
10
use rustc_hir:: intravisit:: { walk_ty, Visitor } ;
11
11
use 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 ,
14
14
} ;
15
15
use rustc_lint:: { LateContext , LateLintPass } ;
16
16
use rustc_middle:: ty:: adjustment:: { Adjust , Adjustment , AutoBorrow , AutoBorrowMutability } ;
@@ -599,7 +599,7 @@ impl<'tcx> LateLintPass<'tcx> for Dereferencing<'tcx> {
599
599
}
600
600
601
601
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 {
603
603
if let Some ( opt_prev_pat) = self . ref_locals . get_mut ( & id) {
604
604
// This binding id has been seen before. Add this pattern to the list of changes.
605
605
if let Some ( prev_pat) = opt_prev_pat {
0 commit comments