rustc: Make option<&foo> no longer cause LLVM asserts by getting rid of regions in normalize_ty
This commit is contained in:
parent
2e231fbcb7
commit
519deca716
@ -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(_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user