mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Intern Substitutions
(Costs a bit of performance, reduces memory usage on RA by ~10%.)
This commit is contained in:
parent
a169fa6a83
commit
be03db0e3a
8 changed files with 34 additions and 27 deletions
|
@ -1825,7 +1825,7 @@ impl Type {
|
|||
Solution::Unique(s) => s
|
||||
.value
|
||||
.subst
|
||||
.interned()
|
||||
.as_slice(&Interner)
|
||||
.first()
|
||||
.map(|ty| self.derived(ty.assert_ty_ref(&Interner).clone())),
|
||||
Solution::Ambig(_) => None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue