@@ -722,7 +722,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
722722 fn check_pat_ident (
723723 & self ,
724724 pat : & ' tcx Pat < ' tcx > ,
725- explicit_ba : BindingMode ,
725+ user_bind_annot : BindingMode ,
726726 var_id : HirId ,
727727 ident : Ident ,
728728 sub : Option < & ' tcx Pat < ' tcx > > ,
@@ -732,7 +732,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
732732 let PatInfo { binding_mode : def_br, top_info : ti, .. } = pat_info;
733733
734734 // Determine the binding mode...
735- let bm = match explicit_ba {
735+ let bm = match user_bind_annot {
736736 BindingMode ( ByRef :: No , Mutability :: Mut )
737737 if !( pat. span . at_least_rust_2024 ( )
738738 && self . tcx . features ( ) . mut_preserve_binding_mode_2024 )
@@ -748,7 +748,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
748748 BindingMode ( ByRef :: No , Mutability :: Mut )
749749 }
750750 BindingMode ( ByRef :: No , mutbl) => BindingMode ( def_br, mutbl) ,
751- BindingMode ( ByRef :: Yes ( _) , _) => explicit_ba ,
751+ BindingMode ( ByRef :: Yes ( _) , _) => user_bind_annot ,
752752 } ;
753753
754754 if bm. 0 == ByRef :: Yes ( Mutability :: Mut )
@@ -797,7 +797,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
797797 // If there are multiple arms, make sure they all agree on
798798 // what the type of the binding `x` ought to be.
799799 if var_id != pat. hir_id {
800- self . check_binding_alt_eq_ty ( explicit_ba , pat. span , var_id, local_ty, ti) ;
800+ self . check_binding_alt_eq_ty ( user_bind_annot , pat. span , var_id, local_ty, ti) ;
801801 }
802802
803803 if let Some ( p) = sub {
0 commit comments