Commit graph

8932 commits

Author SHA1 Message Date
Ayaz Hafiz
6a447f2333
Get rid of RIGID_AS_FLEX unification mode
This was relevant when we checked numeric ranges using unification, but
thanks to Folkert's refactoring, that is no longer necessary.
2022-06-02 20:52:41 -05:00
Ayaz Hafiz
5f5f025e4c
Split up unify_rigid into unify_rigid, unify_rigid_able 2022-06-02 20:51:23 -05:00
Ayaz Hafiz
bef83324da
Break up unify_flex into unify_flex, unify_flex_able 2022-06-02 20:47:57 -05:00
Ayaz Hafiz
09ac1d7555
clippy 2022-06-02 16:06:56 -05:00
Folkert de Vries
c436ac98e2
Merge pull request #3167 from rtfeldman/no-more-tagname
Remove TagName on the front end
2022-06-02 22:52:08 +02:00
Ayaz Hafiz
fe85cdc3c2
Remove Subs::restore
Looks like this is unneeded. One less large type walker to update
2022-06-02 12:28:02 -05:00
Ayaz Hafiz
7ed1cf2459
Use a nested variant to represent unspecialized lambda sets
We'll reuse this in subs
2022-06-02 12:09:13 -05:00
Folkert
b76fc123d0
Merge remote-tracking branch 'origin/trunk' into remove-ena 2022-06-02 18:29:20 +02:00
Ayaz Hafiz
42614d30ed
Add test for instantiating unspecialized lambda sets 2022-06-02 11:24:41 -05:00
Ayaz Hafiz
3cd60e15d0
Add instantiation of unspecialized lambda sets for abilities 2022-06-02 11:01:27 -05:00
Ayaz Hafiz
af38860f07
Add Type::UnspecializedLambdaSet variant 2022-06-02 10:12:44 -05:00
Ayaz Hafiz
873271b02d
Remove unused impl 2022-06-02 09:44:39 -05:00
Ayaz Hafiz
26332901be
Update ident size on wasm 2022-06-02 09:44:39 -05:00
Ayaz Hafiz
32cd3d16d2
Assert sizeof non-wasm 2022-06-02 09:44:38 -05:00
Ayaz Hafiz
7421e444b1
Remove unnecessary SubsFmtContent 2022-06-02 09:44:38 -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
5e35609369
Remove mono/src/exhaustive.rs 2022-06-01 17:39:16 -05:00
Ayaz Hafiz
a8453b0fca
Fix macro 2022-06-01 13:27:24 -05:00
Ayaz Hafiz
c827349ae2
Simply choosing of the matching variable 2022-06-01 13:18:56 -05:00
Ayaz Hafiz
2c62f9b5ba
s/occurence/occurrence 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
5b7f4ef5ec
Clippy 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
0fa4aa8cbd
Simplify maybe_mark_union_recursive 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
2f29326e7a
Remove piggyback of tag unions for lambda sets 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
b4bca5423b
Remove promotion to recursion var for lambda sets 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
591528d8a3
Handle case where lambda set is unbound 2022-06-01 13:18:55 -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
Ayaz Hafiz
3fc95bad90
Remove unused lambda set struct 2022-06-01 13:14:00 -05:00
Folkert de Vries
80492cbb0a
Merge pull request #3164 from rtfeldman/deep-copy-var-loop
make deep_copy_var non-recursive
2022-06-01 20:00:05 +02:00
Folkert
9540aa5b70
make deep_copy_var non-recursive 2022-06-01 17:59:35 +02:00
Anton-4
23236f5cb2
fixed hello swift 2022-06-01 17:15:52 +02:00
Folkert
0022f345ac
remove ena dependency 2022-06-01 15:33:19 +02:00
Anton-4
4b647fd4b1
Forgot tempfile dependency 2022-06-01 13:40:46 +02:00
Anton-4
cb229dad95
Fix zig caching issue 2022-06-01 13:38:38 +02:00
Sean Hagstrom
d9d708fc94
formatter: fix indentation for multi-line lambdas in pipeline expression 2022-06-01 08:53:13 +01:00
Sean Hagstrom
802cf20637
formatter: remove spaces from regions inside module AST definitions 2022-06-01 08:53:13 +01:00
Anton-4
e1804ff755
Merge branch 'trunk' of github.com:rtfeldman/roc into m1_gh_runner 2022-05-30 19:40:16 +02:00
Anton-4
e4412f73f2
add nix apple M1 workflow 2022-05-30 19:34:04 +02:00
Richard Feldman
c8454d0f9b
Merge pull request #3148 from rtfeldman/bindgen-recursive-union
Bindgen normal recursive unions
2022-05-29 12:19:11 -04:00
Richard Feldman
524ae1e3d8
Use RocType::TagUnionPayload for tag union payloads 2022-05-28 19:17:10 -04:00
Richard Feldman
ea644c3360
Merge pull request #3132 from rtfeldman/parse-def-soa 2022-05-28 01:55:01 -04:00
Folkert
278a370b30
use a loop {} instead of recursion to parse 2022-05-26 18:26:48 +02:00
Richard Feldman
1ef5d785c0
Remove no-longer-necessary ReferenceCount uses in wasm 2022-05-26 11:18:06 -04:00
Folkert
bab81fd941
actually use the new parser 2022-05-26 15:32:04 +02:00
Folkert
fa9ac912a0
parse defs with the new approach 2022-05-26 14:14:39 +02:00
Brian Carroll
44bca1c8c5
clippying & fmt'ing 2022-05-26 00:27:18 +01:00
Brian Carroll
11c1c92cc1
wasm: self-review edits 2022-05-25 23:11:37 +01:00