mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
![]() Now that we have unspecialized lambda sets, we need to properly copy their specialization variables when a module imports another modules' ability store. I think it will be easier to ensure the correctness if we distinguish between a "pending" ability store (which may contain imports whose variables have not been added to subs yet) and "resolved" abilities stores, which are what we care about for solve and later on. There is a cost to this since `PendingAbilitiesStore#resolve` destroys and collects all of the ability member data, rather than in-place mutating as we did before. However, the resulting `AbilitiesStore` is now much smaller, so the memory footprint will be better, and also every field besides `ability_members` will be moved rather than copied. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml |