Skip to content

Commit 25ad4cc

Browse files
committed
---
yaml --- r: 4533 b: refs/heads/master c: bcc30cb h: refs/heads/master i: 4531: 04cf4f9 v: v3
1 parent 4d12e9e commit 25ad4cc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 7d5092ee7b549edeb8a2fc6af4c81c8efa29b85c
2+
refs/heads/master: bcc30cb4f638130f610b38a3095cc113a5ee3999

trunk/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)