Fix bug in trans_field, un-XFAIL two more tests.
This commit is contained in:
parent
0d27eb1341
commit
7c25fb5628
2 changed files with 3 additions and 3 deletions
|
|
@ -2376,10 +2376,8 @@ fn trans_path(@block_ctxt cx, &ast.path p, &option.t[ast.def] dopt,
|
|||
|
||||
fn trans_field(@block_ctxt cx, &ast.span sp, @ast.expr base,
|
||||
&ast.ident field, &ast.ann ann) -> lval_result {
|
||||
auto lv = trans_lval(cx, base);
|
||||
auto r = lv.res;
|
||||
auto r = trans_expr(cx, base);
|
||||
r = autoderef(r.bcx, r.val, ty.expr_ty(base));
|
||||
check (lv.is_mem);
|
||||
auto t = ty.expr_ty(base);
|
||||
alt (t.struct) {
|
||||
case (ty.ty_tup(?fields)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue