Skip to content

Commit 71799cf

Browse files
committed
rustc: Actually write the type back
1 parent ddeaea2 commit 71799cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rustc/middle/typeck.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,6 +2208,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
22082208
// FIXME: This is incorrect. Infer the proper region.
22092209
let tm = { ty: oper_t, mutbl: mutbl };
22102210
oper_t = ty::mk_rptr(tcx, ty::re_block(0), tm);
2211+
write_ty(tcx, id, oper_t);
22112212
}
22122213
ast::expr_path(pth) {
22132214
let defn = lookup_def(fcx, pth.span, id);

0 commit comments

Comments
 (0)