提交 519deca7 编写于 作者: P Patrick Walton

rustc: Make option<&foo> no longer cause LLVM asserts by getting rid of regions in normalize_ty

上级 2e231fbc
......@@ -3099,6 +3099,10 @@ fn normalize_ty(cx: ctxt, t: t) -> t {
}
let t = alt get(t).struct {
ty_rptr(region, mt) {
// This type has a region. Get rid of it
mk_rptr(cx, re_static, mt)
}
ty_enum(did, r) {
alt r.self_r {
some(_) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册