@@ -724,7 +724,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
724
724
fn check_pat_ident (
725
725
& self ,
726
726
pat : & ' tcx Pat < ' tcx > ,
727
- explicit_ba : BindingMode ,
727
+ user_bind_annot : BindingMode ,
728
728
var_id : HirId ,
729
729
ident : Ident ,
730
730
sub : Option < & ' tcx Pat < ' tcx > > ,
@@ -734,7 +734,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
734
734
let PatInfo { binding_mode : def_br, top_info : ti, .. } = pat_info;
735
735
736
736
// Determine the binding mode...
737
- let bm = match explicit_ba {
737
+ let bm = match user_bind_annot {
738
738
BindingMode ( ByRef :: No , Mutability :: Mut )
739
739
if !( pat. span . at_least_rust_2024 ( )
740
740
&& self . tcx . features ( ) . mut_preserve_binding_mode_2024 )
@@ -750,7 +750,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
750
750
BindingMode ( ByRef :: No , Mutability :: Mut )
751
751
}
752
752
BindingMode ( ByRef :: No , mutbl) => BindingMode ( def_br, mutbl) ,
753
- BindingMode ( ByRef :: Yes ( _) , _) => explicit_ba ,
753
+ BindingMode ( ByRef :: Yes ( _) , _) => user_bind_annot ,
754
754
} ;
755
755
756
756
if bm. 0 == ByRef :: Yes ( Mutability :: Mut )
@@ -799,7 +799,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
799
799
// If there are multiple arms, make sure they all agree on
800
800
// what the type of the binding `x` ought to be.
801
801
if var_id != pat. hir_id {
802
- self . check_binding_alt_eq_ty ( explicit_ba , pat. span , var_id, local_ty, ti) ;
802
+ self . check_binding_alt_eq_ty ( user_bind_annot , pat. span , var_id, local_ty, ti) ;
803
803
}
804
804
805
805
if let Some ( p) = sub {
0 commit comments