@@ -5995,12 +5995,12 @@ fn trans_rec(&@block_ctxt cx, &vec[ast::field] fields,
59955995}
59965996
59975997fn 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) ;
59995999}
60006000
60016001fn trans_expr_out( & @block_ctxt cx, & @ast:: expr e, out_method output)
60026002 -> result {
6003- * cx = rec ( sp=e . span with * cx ) ;
6003+ // FIXME Fill in cx.sp
60046004 alt ( e. node) {
60056005 case ( ast : : expr_lit( ?lit, ?ann) ) {
60066006 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)
60596059 }
60606060
60616061 case ( ast:: expr_block( ?blk, ?ann) ) {
6062- * cx = rec( sp=blk. span with * cx) ;
60636062 auto sub_cx = new_scope_block_ctxt( cx, "block-expr body" ) ;
60646063 auto next_cx = new_sub_block_ctxt( cx, "next" ) ;
60656064 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)
60726071 case ( ast:: expr_move( ?dst, ?src, _) ) {
60736072 auto lhs_res = trans_lval( cx, dst) ;
60746073 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
60766075 auto rhs_res = trans_lval( lhs_res. res. bcx, src) ;
60776076 auto t = ty:: expr_ty( cx. fcx. lcx. ccx. tcx, src) ;
60786077 // FIXME: calculate copy init-ness in typestate.
@@ -6084,7 +6083,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
60846083 case ( ast:: expr_assign( ?dst, ?src, _) ) {
60856084 auto lhs_res = trans_lval( cx, dst) ;
60866085 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
60886087 auto rhs_res = trans_expr( lhs_res. res. bcx, src) ;
60896088 auto t = ty:: expr_ty( cx. fcx. lcx. ccx. tcx, src) ;
60906089 // FIXME: calculate copy init-ness in typestate.
@@ -6097,7 +6096,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
60976096 auto t = ty:: expr_ty( cx. fcx. lcx. ccx. tcx, src) ;
60986097 auto lhs_res = trans_lval( cx, dst) ;
60996098 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
61016100 auto rhs_res = trans_expr( lhs_res. res. bcx, src) ;
61026101 if ( ty:: type_is_sequence( cx. fcx. lcx. ccx. tcx, t) ) {
61036102 alt ( op) {
@@ -7182,7 +7181,7 @@ fn zero_alloca(&@block_ctxt cx, ValueRef llptr, ty::t t) -> result {
71827181 }
71837182
71847183fn trans_stmt( & @block_ctxt cx, & ast:: stmt s) -> result {
7185- * cx = rec ( sp=s . span with * cx ) ;
7184+ // FIXME Fill in cx.sp
71867185 auto bcx = cx;
71877186 alt ( s. node) {
71887187 case ( ast:: stmt_expr( ?e, _) ) {
@@ -7352,7 +7351,7 @@ fn alloc_local(&@block_ctxt cx, &@ast::local_ local) -> result {
73527351fn trans_block( & @block_ctxt cx, & ast:: block b, & out_method output) -> result {
73537352 auto bcx = cx;
73547353 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
73567355 bcx = alloc_local ( bcx, local) . bcx ;
73577356 }
73587357 auto r = res ( bcx, C_nil ( ) ) ;
0 commit comments