Ayaz Hafiz
f21d68c9fb
Consolidate WorldAbilities and solve Phase
2022-06-13 10:40:36 -04:00
Ayaz Hafiz
bf7d57b23f
Import ability lambda sets from other modules during late solving
...
We're almost there! Just need a way to re-enter already-monomorphized
modules when abilities demand it now.
2022-06-13 08:37:02 -04:00
Ayaz Hafiz
aa9b70a7c8
Distinguish between pending and resolved ability stores
...
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.
2022-06-09 12:52:40 -04:00
Ayaz Hafiz
266f56d25b
Internal error when late compaction fails
2022-06-08 14:06:03 -04:00
Folkert de Vries
9ab0a8f41d
Merge pull request #3201 from rtfeldman/addt-uls-fixes
...
Additional unspecialized lambda set fixes and tests
2022-06-08 16:00:30 +02:00
Ayaz Hafiz
5b8d24d823
Use with_capacity
2022-06-07 16:23:42 -04:00
Ayaz Hafiz
e1db1c4c76
Handle specializing the same lambda set
2022-06-07 14:53:07 -04:00
Ayaz Hafiz
87a1b3b42d
Clippy is_empty
2022-06-07 12:17:40 -04:00
Ayaz Hafiz
201853ecca
Lambda set compaction in mono
2022-06-07 11:50:39 -04:00
Ayaz Hafiz
caa8c0a9d6
Spellcheck
2022-06-07 10:45:06 -04:00
Ayaz Hafiz
3f3d9d035e
Clippy and format
2022-06-07 10:44:43 -04:00
Ayaz Hafiz
90fc08f8df
Compaction of lambda sets must deep copy vars into the right rank
2022-06-07 10:37:13 -04:00
Ayaz Hafiz
8b78e92051
Include specialization symbols
2022-06-07 08:46:16 -04:00
Ayaz Hafiz
0476d4a65c
Remove unspecialized following unification links
2022-06-07 08:46:16 -04:00
Ayaz Hafiz
d71fadd8b0
Resolve and compact specialized lambda sets
2022-06-07 08:46:15 -04:00
Ayaz Hafiz
d8888fc696
Bookkeeping for unspecialized lambda sets
2022-06-07 08:46:15 -04:00
Ayaz Hafiz
feea727697
Introduce unspecialized lambda sets to Content::LambdaSet
2022-06-07 08:46:13 -04:00
Folkert
a5b3f9fb50
remove unneeded use of impl Borrow
2022-06-03 19:15:26 +02:00
Ayaz Hafiz
af38860f07
Add Type::UnspecializedLambdaSet variant
2022-06-02 10:12:44 -05:00
Ayaz Hafiz
b0c602eb8d
Clippy
2022-06-02 09:44:38 -05:00
Ayaz Hafiz
bde107da49
Remove TagName
in favor of explicit TagName or Closure
...
Note that we still need a `TagOrClosure` enum for phases past mono, but
at least we get rid of the branches in the front end.
2022-06-02 09:44:34 -05:00
Ayaz Hafiz
a8453b0fca
Fix macro
2022-06-01 13:27:24 -05:00
Ayaz Hafiz
c66f989467
Recursive closure layout working again in effect test
2022-06-01 13:18:54 -05:00
Ayaz Hafiz
2e70c9aba4
Getting closer. Checking in for a break.
2022-06-01 13:18:53 -05:00
Ayaz Hafiz
790eb8e20c
Lambda sets don't need extension vars
2022-06-01 13:18:03 -05:00
Ayaz Hafiz
c2a2ce690c
Lift lambda sets as their own type
...
This prepares for unspecialized lambda set in the type system in
general.
2022-06-01 13:17:22 -05:00
Folkert
9540aa5b70
make deep_copy_var non-recursive
2022-06-01 17:59:35 +02:00
Richard Feldman
4eec34becf
Update to use new square brace formatting
2022-05-22 23:15:54 -04:00
Folkert
98ce9f4d09
remove the snapshots
2022-05-21 20:42:19 +02:00
Folkert de Vries
feaf53371f
Merge pull request #3113 from rtfeldman/new-utable-copy
...
New utable variable copy
2022-05-21 18:17:56 +02:00
Richard Feldman
3cdaa52a30
Merge pull request #3110 from rtfeldman/handcrafted-unification-table
...
Handcrafted unification table
2022-05-21 11:39:58 -04:00
Folkert
722ae9da6b
pass along the specific pool we're adding to
2022-05-21 14:48:45 +02:00
Folkert
1814a69c30
remove closure that is used once
2022-05-21 14:42:48 +02:00
Folkert
8c44661bc2
use set_content_unchecked; replace modify with a single set
2022-05-21 14:06:43 +02:00
Folkert
f1e1c45f2f
some more unchecked operations
2022-05-21 13:52:44 +02:00
Folkert
a1894195d3
refactoring trivial copy detection
2022-05-21 13:48:28 +02:00
Ayaz Hafiz
ababfa4129
Use two caches instead of a unified one for obligation checking
2022-05-20 17:39:09 -04:00
Folkert
a705d6a6e8
unchecked in making the rank table
2022-05-20 23:28:56 +02:00
Folkert
e20ac3f38f
use unchecked operations in generalization
2022-05-20 23:18:27 +02:00
Folkert
d291a87945
more efficient use of Subs api
2022-05-20 22:55:00 +02:00
Ayaz Hafiz
a4c122d5db
Validate derives clauses after solving
2022-05-20 15:56:55 -04:00
Folkert
4550f3fa88
update deep_copy_var_help
2022-05-20 21:44:46 +02:00
Folkert
be104d25eb
update instantiate rigid
2022-05-20 21:36:05 +02:00
Folkert
f2deb37a30
update instantiate rigid
2022-05-20 21:18:52 +02:00
Folkert
dc155ea95a
update generalize
2022-05-20 21:05:17 +02:00
Folkert
4489a308e4
use modify over getting a mutable reference
2022-05-20 21:02:53 +02:00
Ayaz
eb706d2863
Merge pull request #3100 from rtfeldman/solve-copy-sequence
...
use macro in copy_var to clean up logic
2022-05-20 08:50:42 -04:00
Folkert
9d21343227
use macro to clean logic up a bit
2022-05-20 10:29:41 +02:00
Ayaz Hafiz
cf56b5015a
Fix existing reporting tests
2022-05-19 18:23:02 -04:00
Ayaz Hafiz
2c87214b44
Check derivability of abilities for structural types
2022-05-19 18:23:02 -04:00