rustc: Normalize region-bounded string slices properly

This prevents an LLVM assertion that will bite you if you try to put a static
string in an Error.
This commit is contained in:
Patrick Walton 2012-08-04 15:11:54 -07:00
parent edfc79cc47
commit 8c77536526

View file

@ -3133,6 +3133,10 @@ fn normalize_ty(cx: ctxt, t: t) -> t {
// This type has a vstore. Get rid of it
mk_evec(cx, normalize_mt(cx, mt), normalize_vstore(vstore)),
ty_estr(vstore) =>
// This type has a vstore. Get rid of it
mk_estr(cx, normalize_vstore(vstore)),
ty_rptr(region, mt) =>
// This type has a region. Get rid of it
mk_rptr(cx, re_static, normalize_mt(cx, mt)),