Skip to content

Commit 519deca

Browse files
committed
rustc: Make option<&foo> no longer cause LLVM asserts by getting rid of regions in normalize_ty
1 parent 2e231fb commit 519deca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rustc/middle/ty.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,6 +3099,10 @@ fn normalize_ty(cx: ctxt, t: t) -> t {
30993099
}
31003100

31013101
let t = alt get(t).struct {
3102+
ty_rptr(region, mt) {
3103+
// This type has a region. Get rid of it
3104+
mk_rptr(cx, re_static, mt)
3105+
}
31023106
ty_enum(did, r) {
31033107
alt r.self_r {
31043108
some(_) {

0 commit comments

Comments
 (0)