@@ -863,9 +863,8 @@ mod collect {
863
863
864
864
// Type unification
865
865
866
- // TODO: rename to just "unify"
867
866
mod unify {
868
- fn simple ( fcx : & @fn_ctxt , expected : & ty:: t , actual : & ty:: t ) ->
867
+ fn unify ( fcx : & @fn_ctxt , expected : & ty:: t , actual : & ty:: t ) ->
869
868
ty:: unify:: result {
870
869
ret ty:: unify:: unify ( expected, actual, fcx. var_bindings , fcx. ccx . tcx ) ;
871
870
}
@@ -1014,7 +1013,7 @@ mod demand {
1014
1013
}
1015
1014
1016
1015
1017
- alt unify:: simple ( fcx, expected_1, actual_1) {
1016
+ alt unify:: unify ( fcx, expected_1, actual_1) {
1018
1017
ures_ok ( t) {
1019
1018
ret mk_result ( fcx, t, ty_param_subst_var_ids, implicit_boxes) ;
1020
1019
}
@@ -1037,7 +1036,7 @@ mod demand {
1037
1036
1038
1037
// Returns true if the two types unify and false if they don't.
1039
1038
fn are_compatible ( fcx : & @fn_ctxt , expected : & ty:: t , actual : & ty:: t ) -> bool {
1040
- alt unify:: simple ( fcx, expected, actual) {
1039
+ alt unify:: unify ( fcx, expected, actual) {
1041
1040
ures_ok ( _) { ret true ; }
1042
1041
ures_err ( _) { ret false ; }
1043
1042
}
0 commit comments