File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1439,15 +1439,15 @@ fn is_valid_fn_candidate(
14391439 _ => unreachable ! ( ) ,
14401440 } ;
14411441
1442- let fn_subst = TyBuilder :: subst_for_def ( db, fn_id, Some ( impl_subst. clone ( ) ) )
1443- . fill_with_inference_vars ( table)
1444- . build ( ) ;
1445-
14461442 check_that ! ( table. unify( & expect_self_ty, self_ty) ) ;
14471443
14481444 if let Some ( receiver_ty) = receiver_ty {
14491445 check_that ! ( data. has_self_param( ) ) ;
14501446
1447+ let fn_subst = TyBuilder :: subst_for_def ( db, fn_id, Some ( impl_subst. clone ( ) ) )
1448+ . fill_with_inference_vars ( table)
1449+ . build ( ) ;
1450+
14511451 let sig = db. callable_item_signature ( fn_id. into ( ) ) ;
14521452 let expected_receiver =
14531453 sig. map ( |s| s. params ( ) [ 0 ] . clone ( ) ) . substitute ( Interner , & fn_subst) ;
You can’t perform that action at this time.
0 commit comments