@@ -823,7 +823,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
823
823
824
824
return match expr. node {
825
825
ast:: expr_paren( e) => {
826
- unrooted ( bcx, e)
826
+ trans_lvalue_unadjusted ( bcx, e)
827
827
}
828
828
ast:: expr_path( _) => {
829
829
trans_def_lvalue ( bcx, expr, bcx. def ( expr. id ) )
@@ -849,12 +849,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
849
849
fn trans_rec_field ( bcx : block ,
850
850
base : @ast:: expr ,
851
851
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`.
858
853
859
854
let mut bcx = bcx;
860
855
let _icx = bcx. insn_ctxt ( "trans_rec_field" ) ;
@@ -878,12 +873,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
878
873
index_expr : @ast:: expr ,
879
874
base : @ast:: expr ,
880
875
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]`.
887
877
888
878
let _icx = bcx. insn_ctxt ( "trans_index" ) ;
889
879
let ccx = bcx. ccx ( ) ;
@@ -946,14 +936,7 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
946
936
def : ast:: def )
947
937
-> DatumBlock
948
938
{
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.
957
940
958
941
let _icx = bcx. insn_ctxt ( "trans_def_lvalue" ) ;
959
942
let ccx = bcx. ccx ( ) ;
0 commit comments