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(
1439
1439
_ => unreachable ! ( ) ,
1440
1440
} ;
1441
1441
1442
- let fn_subst = TyBuilder :: subst_for_def ( db, fn_id, Some ( impl_subst. clone ( ) ) )
1443
- . fill_with_inference_vars ( table)
1444
- . build ( ) ;
1445
-
1446
1442
check_that ! ( table. unify( & expect_self_ty, self_ty) ) ;
1447
1443
1448
1444
if let Some ( receiver_ty) = receiver_ty {
1449
1445
check_that ! ( data. has_self_param( ) ) ;
1450
1446
1447
+ let fn_subst = TyBuilder :: subst_for_def ( db, fn_id, Some ( impl_subst. clone ( ) ) )
1448
+ . fill_with_inference_vars ( table)
1449
+ . build ( ) ;
1450
+
1451
1451
let sig = db. callable_item_signature ( fn_id. into ( ) ) ;
1452
1452
let expected_receiver =
1453
1453
sig. map ( |s| s. params ( ) [ 0 ] . clone ( ) ) . substitute ( Interner , & fn_subst) ;
You can’t perform that action at this time.
0 commit comments