@@ -5995,12 +5995,12 @@ fn trans_rec(&@block_ctxt cx, &vec[ast::field] fields,
5995
5995
}
5996
5996
5997
5997
fn trans_expr( & @block_ctxt cx, & @ast:: expr e) -> result {
5998
- be trans_expr_out( cx, e, return) ;
5998
+ ret trans_expr_out( cx, e, return) ;
5999
5999
}
6000
6000
6001
6001
fn trans_expr_out( & @block_ctxt cx, & @ast:: expr e, out_method output)
6002
6002
-> result {
6003
- * cx = rec ( sp=e . span with * cx ) ;
6003
+ // FIXME Fill in cx.sp
6004
6004
alt ( e. node) {
6005
6005
case ( ast : : expr_lit( ?lit, ?ann) ) {
6006
6006
ret res( cx, trans_lit( cx. fcx. lcx. ccx, * lit, ann) ) ;
@@ -6059,7 +6059,6 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
6059
6059
}
6060
6060
6061
6061
case ( ast:: expr_block( ?blk, ?ann) ) {
6062
- * cx = rec( sp=blk. span with * cx) ;
6063
6062
auto sub_cx = new_scope_block_ctxt( cx, "block-expr body" ) ;
6064
6063
auto next_cx = new_sub_block_ctxt( cx, "next" ) ;
6065
6064
auto sub = with_out_method( bind trans_block( sub_cx, blk, _) ,
@@ -6072,7 +6071,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
6072
6071
case ( ast:: expr_move( ?dst, ?src, _) ) {
6073
6072
auto lhs_res = trans_lval( cx, dst) ;
6074
6073
assert ( lhs_res. is_mem) ;
6075
- * ( lhs_res . res . bcx ) = rec ( sp=src . span with * ( lhs_res. res. bcx) ) ;
6074
+ // FIXME Fill in lhs_res.res.bcx.sp
6076
6075
auto rhs_res = trans_lval( lhs_res. res. bcx, src) ;
6077
6076
auto t = ty:: expr_ty( cx. fcx. lcx. ccx. tcx, src) ;
6078
6077
// FIXME: calculate copy init-ness in typestate.
@@ -6084,7 +6083,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
6084
6083
case ( ast:: expr_assign( ?dst, ?src, _) ) {
6085
6084
auto lhs_res = trans_lval( cx, dst) ;
6086
6085
assert ( lhs_res. is_mem) ;
6087
- * ( lhs_res . res . bcx ) = rec ( sp=src . span with * ( lhs_res. res. bcx) ) ;
6086
+ // FIXME Fill in lhs_res.res.bcx.sp
6088
6087
auto rhs_res = trans_expr( lhs_res. res. bcx, src) ;
6089
6088
auto t = ty:: expr_ty( cx. fcx. lcx. ccx. tcx, src) ;
6090
6089
// FIXME: calculate copy init-ness in typestate.
@@ -6097,7 +6096,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
6097
6096
auto t = ty:: expr_ty( cx. fcx. lcx. ccx. tcx, src) ;
6098
6097
auto lhs_res = trans_lval( cx, dst) ;
6099
6098
assert ( lhs_res. is_mem) ;
6100
- * ( lhs_res . res . bcx ) = rec ( sp=src . span with * ( lhs_res. res. bcx) ) ;
6099
+ // FIXME Fill in lhs_res.res.bcx.sp
6101
6100
auto rhs_res = trans_expr( lhs_res. res. bcx, src) ;
6102
6101
if ( ty:: type_is_sequence( cx. fcx. lcx. ccx. tcx, t) ) {
6103
6102
alt ( op) {
@@ -7182,7 +7181,7 @@ fn zero_alloca(&@block_ctxt cx, ValueRef llptr, ty::t t) -> result {
7182
7181
}
7183
7182
7184
7183
fn trans_stmt( & @block_ctxt cx, & ast:: stmt s) -> result {
7185
- * cx = rec ( sp=s . span with * cx ) ;
7184
+ // FIXME Fill in cx.sp
7186
7185
auto bcx = cx;
7187
7186
alt ( s. node) {
7188
7187
case ( ast:: stmt_expr( ?e, _) ) {
@@ -7352,7 +7351,7 @@ fn alloc_local(&@block_ctxt cx, &@ast::local_ local) -> result {
7352
7351
fn trans_block( & @block_ctxt cx, & ast:: block b, & out_method output) -> result {
7353
7352
auto bcx = cx;
7354
7353
for each ( @ast:: local_ local in block_locals ( b) ) {
7355
- * bcx = rec ( sp= local_rhs_span ( local , cx . sp ) with * bcx ) ;
7354
+ // FIXME Update bcx .sp
7356
7355
bcx = alloc_local ( bcx, local) . bcx ;
7357
7356
}
7358
7357
auto r = res ( bcx, C_nil ( ) ) ;
0 commit comments