@@ -181,7 +181,7 @@ fn drop_and_cancel_clean(bcx: @mut Block, dat: Datum) -> @mut Block {
181
181
return bcx;
182
182
}
183
183
184
- pub fn trans_to_datum ( bcx : @mut Block , expr : @ ast:: Expr ) -> DatumBlock {
184
+ pub fn trans_to_datum ( bcx : @mut Block , expr : & ast:: Expr ) -> DatumBlock {
185
185
debug ! ( "trans_to_datum(expr=%s)" , bcx. expr_to_str( expr) ) ;
186
186
187
187
let mut bcx = bcx;
@@ -307,7 +307,7 @@ pub fn trans_to_datum(bcx: @mut Block, expr: @ast::Expr) -> DatumBlock {
307
307
308
308
fn auto_borrow_obj ( mut bcx : @mut Block ,
309
309
autoderefs : uint ,
310
- expr : @ ast:: Expr ,
310
+ expr : & ast:: Expr ,
311
311
source_datum : Datum ) -> DatumBlock {
312
312
let tcx = bcx. tcx ( ) ;
313
313
let target_obj_ty = expr_ty_adjusted ( bcx, expr) ;
@@ -419,7 +419,7 @@ pub fn trans_to_datum(bcx: @mut Block, expr: @ast::Expr) -> DatumBlock {
419
419
}
420
420
}
421
421
422
- pub fn trans_into ( bcx : @mut Block , expr : @ ast:: Expr , dest : Dest ) -> @mut Block {
422
+ pub fn trans_into ( bcx : @mut Block , expr : & ast:: Expr , dest : Dest ) -> @mut Block {
423
423
if bcx. tcx ( ) . adjustments . contains_key ( & expr. id ) {
424
424
// use trans_to_datum, which is mildly less efficient but
425
425
// which will perform the adjustments:
@@ -477,7 +477,7 @@ pub fn trans_into(bcx: @mut Block, expr: @ast::Expr, dest: Dest) -> @mut Block {
477
477
} ;
478
478
}
479
479
480
- fn trans_lvalue ( bcx : @mut Block , expr : @ ast:: Expr ) -> DatumBlock {
480
+ fn trans_lvalue ( bcx : @mut Block , expr : & ast:: Expr ) -> DatumBlock {
481
481
/*!
482
482
*
483
483
* Translates an lvalue expression, always yielding a by-ref
@@ -496,7 +496,7 @@ fn trans_lvalue(bcx: @mut Block, expr: @ast::Expr) -> DatumBlock {
496
496
} ;
497
497
}
498
498
499
- fn trans_to_datum_unadjusted ( bcx : @mut Block , expr : @ ast:: Expr ) -> DatumBlock {
499
+ fn trans_to_datum_unadjusted ( bcx : @mut Block , expr : & ast:: Expr ) -> DatumBlock {
500
500
/*!
501
501
* Translates an expression into a datum. If this expression
502
502
* is an rvalue, this will result in a temporary value being
@@ -562,7 +562,7 @@ fn trans_to_datum_unadjusted(bcx: @mut Block, expr: @ast::Expr) -> DatumBlock {
562
562
}
563
563
}
564
564
565
- fn trans_rvalue_datum_unadjusted ( bcx : @mut Block , expr : @ ast:: Expr ) -> DatumBlock {
565
+ fn trans_rvalue_datum_unadjusted ( bcx : @mut Block , expr : & ast:: Expr ) -> DatumBlock {
566
566
let _icx = push_ctxt ( "trans_rvalue_datum_unadjusted" ) ;
567
567
568
568
trace_span ! ( bcx, expr. span, shorten( bcx. expr_to_str( expr) ) ) ;
@@ -615,7 +615,7 @@ fn trans_rvalue_datum_unadjusted(bcx: @mut Block, expr: @ast::Expr) -> DatumBloc
615
615
}
616
616
}
617
617
618
- fn trans_rvalue_stmt_unadjusted ( bcx : @mut Block , expr : @ ast:: Expr ) -> @mut Block {
618
+ fn trans_rvalue_stmt_unadjusted ( bcx : @mut Block , expr : & ast:: Expr ) -> @mut Block {
619
619
let mut bcx = bcx;
620
620
let _icx = push_ctxt ( "trans_rvalue_stmt" ) ;
621
621
@@ -669,7 +669,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: @mut Block, expr: @ast::Expr) -> @mut Block
669
669
} ;
670
670
}
671
671
672
- fn trans_rvalue_dps_unadjusted ( bcx : @mut Block , expr : @ ast:: Expr ,
672
+ fn trans_rvalue_dps_unadjusted ( bcx : @mut Block , expr : & ast:: Expr ,
673
673
dest : Dest ) -> @mut Block {
674
674
let _icx = push_ctxt ( "trans_rvalue_dps_unadjusted" ) ;
675
675
let tcx = bcx. tcx ( ) ;
@@ -878,7 +878,7 @@ fn trans_def_datum_unadjusted(bcx: @mut Block,
878
878
}
879
879
}
880
880
881
- fn trans_lvalue_unadjusted ( bcx : @mut Block , expr : @ ast:: Expr ) -> DatumBlock {
881
+ fn trans_lvalue_unadjusted ( bcx : @mut Block , expr : & ast:: Expr ) -> DatumBlock {
882
882
/*!
883
883
*
884
884
* Translates an lvalue expression, always yielding a by-ref
@@ -918,7 +918,7 @@ fn trans_lvalue_unadjusted(bcx: @mut Block, expr: @ast::Expr) -> DatumBlock {
918
918
} ;
919
919
920
920
fn trans_rec_field ( bcx : @mut Block ,
921
- base : @ ast:: Expr ,
921
+ base : & ast:: Expr ,
922
922
field : ast:: Ident ) -> DatumBlock {
923
923
//! Translates `base.field`.
924
924
@@ -942,8 +942,8 @@ fn trans_lvalue_unadjusted(bcx: @mut Block, expr: @ast::Expr) -> DatumBlock {
942
942
943
943
fn trans_index ( bcx : @mut Block ,
944
944
index_expr : & ast:: Expr ,
945
- base : @ ast:: Expr ,
946
- idx : @ ast:: Expr ) -> DatumBlock {
945
+ base : & ast:: Expr ,
946
+ idx : & ast:: Expr ) -> DatumBlock {
947
947
//! Translates `base[idx]`.
948
948
949
949
let _icx = push_ctxt ( "trans_index" ) ;
@@ -1321,7 +1321,7 @@ fn trans_adt(bcx: @mut Block, repr: &adt::Repr, discr: ty::Disr,
1321
1321
}
1322
1322
1323
1323
1324
- fn trans_immediate_lit ( bcx : @mut Block , expr : @ ast:: Expr ,
1324
+ fn trans_immediate_lit ( bcx : @mut Block , expr : & ast:: Expr ,
1325
1325
lit : ast:: lit ) -> DatumBlock {
1326
1326
// must not be a string constant, that is a RvalueDpsExpr
1327
1327
let _icx = push_ctxt ( "trans_immediate_lit" ) ;
@@ -1332,7 +1332,7 @@ fn trans_immediate_lit(bcx: @mut Block, expr: @ast::Expr,
1332
1332
fn trans_unary_datum ( bcx : @mut Block ,
1333
1333
un_expr : & ast:: Expr ,
1334
1334
op : ast:: UnOp ,
1335
- sub_expr : @ ast:: Expr ) -> DatumBlock {
1335
+ sub_expr : & ast:: Expr ) -> DatumBlock {
1336
1336
let _icx = push_ctxt ( "trans_unary_datum" ) ;
1337
1337
1338
1338
// if deref, would be LvalueExpr
@@ -1391,7 +1391,7 @@ fn trans_unary_datum(bcx: @mut Block,
1391
1391
1392
1392
fn trans_boxed_expr ( bcx : @mut Block ,
1393
1393
box_ty : ty:: t ,
1394
- contents : @ ast:: Expr ,
1394
+ contents : & ast:: Expr ,
1395
1395
contents_ty : ty:: t ,
1396
1396
heap : heap ) -> DatumBlock {
1397
1397
let _icx = push_ctxt ( "trans_boxed_expr" ) ;
@@ -1416,7 +1416,7 @@ fn trans_unary_datum(bcx: @mut Block,
1416
1416
}
1417
1417
1418
1418
fn trans_addr_of ( bcx : @mut Block , expr : & ast:: Expr ,
1419
- subexpr : @ ast:: Expr ) -> DatumBlock {
1419
+ subexpr : & ast:: Expr ) -> DatumBlock {
1420
1420
let _icx = push_ctxt ( "trans_addr_of" ) ;
1421
1421
let mut bcx = bcx;
1422
1422
let sub_datum = unpack_datum ! ( bcx, trans_to_datum( bcx, subexpr) ) ;
@@ -1532,8 +1532,8 @@ enum lazy_binop_ty { lazy_and, lazy_or }
1532
1532
fn trans_lazy_binop ( bcx : @mut Block ,
1533
1533
binop_expr : & ast:: Expr ,
1534
1534
op : lazy_binop_ty ,
1535
- a : @ ast:: Expr ,
1536
- b : @ ast:: Expr ) -> DatumBlock {
1535
+ a : & ast:: Expr ,
1536
+ b : & ast:: Expr ) -> DatumBlock {
1537
1537
let _icx = push_ctxt ( "trans_lazy_binop" ) ;
1538
1538
let binop_ty = expr_ty ( bcx, binop_expr) ;
1539
1539
let bcx = bcx;
@@ -1577,8 +1577,8 @@ fn trans_lazy_binop(bcx: @mut Block,
1577
1577
fn trans_binary ( bcx : @mut Block ,
1578
1578
binop_expr : & ast:: Expr ,
1579
1579
op : ast:: BinOp ,
1580
- lhs : @ ast:: Expr ,
1581
- rhs : @ ast:: Expr ) -> DatumBlock
1580
+ lhs : & ast:: Expr ,
1581
+ rhs : & ast:: Expr ) -> DatumBlock
1582
1582
{
1583
1583
let _icx = push_ctxt ( "trans_binary" ) ;
1584
1584
@@ -1603,7 +1603,7 @@ fn trans_binary(bcx: @mut Block,
1603
1603
fn trans_overloaded_op ( bcx : @mut Block ,
1604
1604
expr : & ast:: Expr ,
1605
1605
callee_id : ast:: NodeId ,
1606
- rcvr : @ ast:: Expr ,
1606
+ rcvr : & ast:: Expr ,
1607
1607
args : ~[ @ast:: Expr ] ,
1608
1608
ret_ty : ty:: t ,
1609
1609
dest : Dest )
@@ -1679,7 +1679,7 @@ pub fn cast_type_kind(t: ty::t) -> cast_kind {
1679
1679
}
1680
1680
}
1681
1681
1682
- fn trans_imm_cast ( bcx : @mut Block , expr : @ ast:: Expr ,
1682
+ fn trans_imm_cast ( bcx : @mut Block , expr : & ast:: Expr ,
1683
1683
id : ast:: NodeId ) -> DatumBlock {
1684
1684
let _icx = push_ctxt ( "trans_cast" ) ;
1685
1685
let ccx = bcx. ccx ( ) ;
@@ -1748,10 +1748,10 @@ fn trans_imm_cast(bcx: @mut Block, expr: @ast::Expr,
1748
1748
}
1749
1749
1750
1750
fn trans_assign_op ( bcx : @mut Block ,
1751
- expr : @ ast:: Expr ,
1751
+ expr : & ast:: Expr ,
1752
1752
callee_id : ast:: NodeId ,
1753
1753
op : ast:: BinOp ,
1754
- dst : @ ast:: Expr ,
1754
+ dst : & ast:: Expr ,
1755
1755
src : @ast:: Expr ) -> @mut Block
1756
1756
{
1757
1757
let _icx = push_ctxt ( "trans_assign_op" ) ;
0 commit comments