Skip to content

Commit bcc30cb

Browse files
committed
Rename unify::simple to unify::unify.
1 parent 7d5092e commit bcc30cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/comp/middle/typeck.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,8 @@ mod collect {
863863

864864
// Type unification
865865

866-
// TODO: rename to just "unify"
867866
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) ->
869868
ty::unify::result {
870869
ret ty::unify::unify(expected, actual, fcx.var_bindings, fcx.ccx.tcx);
871870
}
@@ -1014,7 +1013,7 @@ mod demand {
10141013
}
10151014

10161015

1017-
alt unify::simple(fcx, expected_1, actual_1) {
1016+
alt unify::unify(fcx, expected_1, actual_1) {
10181017
ures_ok(t) {
10191018
ret mk_result(fcx, t, ty_param_subst_var_ids, implicit_boxes);
10201019
}
@@ -1037,7 +1036,7 @@ mod demand {
10371036

10381037
// Returns true if the two types unify and false if they don't.
10391038
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) {
10411040
ures_ok(_) { ret true; }
10421041
ures_err(_) { ret false; }
10431042
}

0 commit comments

Comments
 (0)