mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Reduce MIR memory usage
This commit is contained in:
parent
cae9660a1d
commit
23ce228d54
6 changed files with 83 additions and 55 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue