Skip to content

Commit 0424aa0

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1645 b: refs/heads/master c: 8b5574a h: refs/heads/master i: 1643: f8581b9 v: v3
1 parent 5c27b1b commit 0424aa0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b83a4af93c1da96002db120af336ad8ef6a68e30
2+
refs/heads/master: 8b5574ac0981de3f4a6f0b8acc15c07653b1b3ae

trunk/src/comp/middle/typeck.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,9 +1644,8 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
16441644
ret tup(f_1, args_1);
16451645
}
16461646

1647-
// A generic function for checking expressions that have a form
1648-
// similar to assignment.
1649-
fn check_assignment_like(&@fn_ctxt fcx, @ast.expr lhs, @ast.expr rhs)
1647+
// A generic function for checking assignment expressions
1648+
fn check_assignment(&@fn_ctxt fcx, @ast.expr lhs, @ast.expr rhs)
16501649
-> tup(@ast.expr, @ast.expr, ast.ann) {
16511650
auto lhs_0 = check_expr(fcx, lhs);
16521651
auto rhs_0 = check_expr(fcx, rhs);
@@ -1814,15 +1813,15 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
18141813
}
18151814

18161815
case (ast.expr_assign(?lhs, ?rhs, _)) {
1817-
auto checked = check_assignment_like(fcx, lhs, rhs);
1816+
auto checked = check_assignment(fcx, lhs, rhs);
18181817
auto newexpr = ast.expr_assign(checked._0,
18191818
checked._1,
18201819
checked._2);
18211820
ret @fold.respan[ast.expr_](expr.span, newexpr);
18221821
}
18231822

18241823
case (ast.expr_assign_op(?op, ?lhs, ?rhs, _)) {
1825-
auto checked = check_assignment_like(fcx, lhs, rhs);
1824+
auto checked = check_assignment(fcx, lhs, rhs);
18261825
auto newexpr = ast.expr_assign_op(op,
18271826
checked._0,
18281827
checked._1,

0 commit comments

Comments
 (0)