@@ -1644,9 +1644,8 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
1644
1644
ret tup( f_1, args_1) ;
1645
1645
}
1646
1646
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)
1650
1649
-> tup( @ast. expr, @ast. expr, ast. ann) {
1651
1650
auto lhs_0 = check_expr( fcx, lhs) ;
1652
1651
auto rhs_0 = check_expr( fcx, rhs) ;
@@ -1814,15 +1813,15 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
1814
1813
}
1815
1814
1816
1815
case ( ast. expr_assign( ?lhs, ?rhs, _) ) {
1817
- auto checked = check_assignment_like ( fcx, lhs, rhs) ;
1816
+ auto checked = check_assignment ( fcx, lhs, rhs) ;
1818
1817
auto newexpr = ast. expr_assign( checked. _0,
1819
1818
checked. _1,
1820
1819
checked. _2) ;
1821
1820
ret @fold. respan[ ast. expr_] ( expr. span, newexpr) ;
1822
1821
}
1823
1822
1824
1823
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) ;
1826
1825
auto newexpr = ast. expr_assign_op( op,
1827
1826
checked. _0,
1828
1827
checked. _1,
0 commit comments