Reduce MIR memory usage

This commit is contained in:
hkalbasi 2023-05-19 00:16:52 +03:30
parent cae9660a1d
commit 23ce228d54
6 changed files with 83 additions and 55 deletions

View file

@ -562,7 +562,7 @@ impl Evaluator<'_> {
let mut ty: Ty =
self.ty_filler(&locals.body.locals[p.local].ty, locals.subst, locals.body.owner)?;
let mut metadata: Option<IntervalOrOwned> = None; // locals are always sized
for proj in &p.projection {
for proj in &*p.projection {
let prev_ty = ty.clone();
ty = proj.projected_ty(
ty,