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:
parent
edfc79cc47
commit
8c77536526
1 changed files with 4 additions and 0 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue