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