Skip to content

Commit beee8c8

Browse files
committed
---
yaml --- r: 59867 b: refs/heads/master c: fbaf839 h: refs/heads/master i: 59865: 5d63860 59863: dae6816 v: v3
1 parent 6b3864c commit beee8c8

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6210de9529f37bb4ff51050bca19dfd6f28026c9
2+
refs/heads/master: fbaf8399c8d4670b16684a7d94c8ed70839ffc8e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
55
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589

trunk/src/librustc/middle/trans/expr.rs

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
823823

824824
return match expr.node {
825825
ast::expr_paren(e) => {
826-
unrooted(bcx, e)
826+
trans_lvalue_unadjusted(bcx, e)
827827
}
828828
ast::expr_path(_) => {
829829
trans_def_lvalue(bcx, expr, bcx.def(expr.id))
@@ -849,12 +849,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
849849
fn trans_rec_field(bcx: block,
850850
base: @ast::expr,
851851
field: ast::ident) -> DatumBlock {
852-
/*!
853-
*
854-
* Translates `base.field`. Note that this version always
855-
* yields an unrooted, unmoved version. Rooting and possible
856-
* moves are dealt with above in trans_lvalue_unadjusted().
857-
*/
852+
//! Translates `base.field`.
858853
859854
let mut bcx = bcx;
860855
let _icx = bcx.insn_ctxt("trans_rec_field");
@@ -878,12 +873,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
878873
index_expr: @ast::expr,
879874
base: @ast::expr,
880875
idx: @ast::expr) -> DatumBlock {
881-
/*!
882-
*
883-
* Translates `base[idx]`. Note that this version always
884-
* yields an unrooted, unmoved version. Rooting and possible
885-
* moves are dealt with above in trans_lvalue_unadjusted().
886-
*/
876+
//! Translates `base[idx]`.
887877
888878
let _icx = bcx.insn_ctxt("trans_index");
889879
let ccx = bcx.ccx();
@@ -946,14 +936,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
946936
def: ast::def)
947937
-> DatumBlock
948938
{
949-
/*!
950-
*
951-
* Translates a reference to a path. Note that this version
952-
* generally yields an unrooted, unmoved version. Rooting and
953-
* possible moves are dealt with above in
954-
* trans_lvalue_unadjusted(), with the caveat that local variables
955-
* may already be in move mode.
956-
*/
939+
//! Translates a reference to a path.
957940
958941
let _icx = bcx.insn_ctxt("trans_def_lvalue");
959942
let ccx = bcx.ccx();

0 commit comments

Comments
 (0)