Skip to content

Commit 8cedf82

Browse files
committed
---
yaml --- r: 14718 b: refs/heads/try c: fcde161 h: refs/heads/master v: v3
1 parent b3ffd79 commit 8cedf82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: d048a00cf3c275d9f9974960d0db463844da898e
5+
refs/heads/try: fcde161f4f9b686a790da52653a0a810bf09d487
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/typeck.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,9 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
21922192
}
21932193
}
21942194
ast::addr_of {
2195-
tcx.sess.bug("TODO pcwalton");
2195+
// FIXME: This is incorrect. Infer the proper region.
2196+
let tm = { ty: oper_t, mutbl: ast::m_imm };
2197+
oper_t = ty::mk_rptr(tcx, ty::re_block(0), tm);
21962198
}
21972199
}
21982200
write_ty(tcx, id, oper_t);

0 commit comments

Comments
 (0)