Commit Graph

14346 Commits

Author SHA1 Message Date
Ayaz Hafiz
0387eeed23
Make sure we're generating correct code with has annotations 2022-04-20 17:45:41 -04:00
Ayaz Hafiz
cbfd76380a
Improve ability generalization error message 2022-04-20 17:45:41 -04:00
Ayaz Hafiz
9d71a3d1ac
Generalizing ability type instance to ability is illegal
Closes #2881
2022-04-20 17:45:40 -04:00
Ayaz Hafiz
bd6078a34a
Fix reporting tests 2022-04-20 17:43:17 -04:00
Ayaz Hafiz
ff5ae67094
Multi-specializations of able variables through function compile 2022-04-20 17:43:17 -04:00
Ayaz Hafiz
b9f79fdd31
Able variables through different functions compile 2022-04-20 17:43:17 -04:00
Ayaz Hafiz
a07323fb40
Typecheck annotations with able variables outside ability members 2022-04-20 17:43:16 -04:00
Brian Carroll
f8156ffd53
Merge pull request #2834 from rtfeldman/wasm-list-map-n
Wasm List.mapN
2022-04-20 14:47:04 +01:00
Folkert de Vries
30731da716
Merge pull request #2892 from rtfeldman/i/2878
Explicitly disallow ability definitions in nested scopes
2022-04-20 14:51:21 +02:00
Richard Feldman
ecd230f97c
Merge pull request #2896 from rtfeldman/error-message
Record error reporting improvements
2022-04-20 07:58:24 -04:00
Anton-4
07fcafd6d7
Merge pull request #2897 from rtfeldman/concurrency-groups
Turn on concurrency groups for GitHub CI
2022-04-20 09:27:57 +02:00
Richard Feldman
93677001ba
Merge pull request #2888 from rtfeldman/divTrunc
rename divFloor to divTrunc
2022-04-19 21:57:49 -04:00
ayazhafiz
d4d8f6d902 Turn on concurrency groups for GitHub CI
This ensures that we only one set of workflows is running for an active
GH ref (usually a PR). Stale workflows will be term'd when a new one
associated with the same PR is kicked off.

See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
2022-04-19 21:21:11 -04:00
Richard Feldman
0c96c0b66f
Professional basketball team Los Angeles Clippy 2022-04-19 20:53:45 -04:00
Richard Feldman
b35ff3add3
cargo fmt 2022-04-19 20:53:45 -04:00
Richard Feldman
85d30a541d
Update reporting tests 2022-04-19 20:53:45 -04:00
Richard Feldman
5562121006
Use ':' and '.' contextually in error messages
e.g. record update errors complain about 'foo:'
being wrong, whereas record access errors
complain about '.foo' being wrong.
2022-04-19 20:53:44 -04:00
Richard Feldman
fdb378f859
Drop extraneous space before newline 2022-04-19 20:53:44 -04:00
Richard Feldman
40aca3c20d
Remove another gazillion allocations from reporting 2022-04-19 20:53:44 -04:00
Richard Feldman
27edc49271
Use nicer report for record field mismatches 2022-04-19 20:53:44 -04:00
Richard Feldman
3f698c9878
Remove a gazillion allocations from reporting 2022-04-19 20:53:44 -04:00
Richard Feldman
7fc01a0a9b
Annotate record typos and suggestions better 2022-04-19 20:53:44 -04:00
Richard Feldman
3a736c6ece
Match typo suggestion color with typo color 2022-04-19 20:53:43 -04:00
Richard Feldman
681e73d393
Combine record and record snippet reporting 2022-04-19 20:53:43 -04:00
Richard Feldman
ab44f23e0f
Revise record field typo error report 2022-04-19 20:53:43 -04:00
Ayaz
5188f8f7df
Merge branch 'trunk' into i/2878 2022-04-18 21:46:23 -04:00
Ayaz Hafiz
f129777115
Explicitly disallow ability definitions in nested scopes
Abilities can only be defined on the toplevel of a module. There is a
technical reason to this, which is that during type solving we must
introduce all abilities at the very beginning, and we need to make sure
ranks are correct. But there is a practical reason as well, which is
that nested ability definitions don't seem to be very useful.

Note that specializations can be nested, and are allowed to be. Also, we
can revisit this in the future. I just don't want experiments to break
right now because someone uses an ability in a nested scope where we
don't expect.

Closes #2878
2022-04-18 18:04:46 -04:00
Ayaz
9343c6802a
Merge pull request #2890 from rtfeldman/i/2886
Solve all when branch pattern constraints before solving their bodies
2022-04-18 17:46:55 -04:00
Folkert de Vries
d6fea41c1d
Merge pull request #2613 from rtfeldman/builtins-in-roc
Write non-lowlevel builtins in roc
2022-04-18 23:42:09 +02:00
Folkert
833aecbf8a
fix name 2022-04-18 22:05:06 +02:00
Folkert
c0f9fb52a9
update Box imports/ignores because it is now available by default 2022-04-18 21:45:40 +02:00
Folkert
1c8b18f176
import Box by default 2022-04-18 21:43:16 +02:00
Ayaz Hafiz
b81bbefa75
Make sure we solve all variables in all patterns before all bodies 2022-04-18 12:56:48 -04:00
Ayaz Hafiz
ceea194db4
Make sure "is open" constraints add flex vars at the right rank 2022-04-18 12:56:22 -04:00
Ayaz Hafiz
2856a38236
Solve all when branch pattern constraints before solving their bodies
Closes #2886
2022-04-18 11:03:25 -04:00
Ayaz Hafiz
e0c9931326
Bugfix debug printing 2022-04-18 10:21:56 -04:00
Kevin Gillette
6a3fd3a607
rename divFloor to divTrunc 2022-04-18 02:33:31 -06:00
Richard Feldman
340f6b7c88
fix typo 2022-04-18 01:21:33 -04:00
Richard Feldman
a8f0b771f6
Add Kas Buunk to AUTHORS 2022-04-18 01:21:23 -04:00
Richard Feldman
30d36c5719
Merge pull request #2887 from rtfeldman/fix-typo-docs
chore: correct typo in docs
2022-04-18 01:20:17 -04:00
Kas Buunk
8a16c963d1
chore: correct typo in docs 2022-04-18 07:11:31 +02:00
Folkert
aa8eed2fc9
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-18 00:13:10 +02:00
Folkert de Vries
000ec79106
Merge pull request #2882 from rtfeldman/vecset-references
use VecSet in References
2022-04-18 00:11:02 +02:00
Folkert
2c0b29efd1
use VecSet in IntroducedVariables 2022-04-17 20:53:54 +02:00
Folkert
7f3ca4458a
use VecSet in IntroducedVariables 2022-04-17 20:50:41 +02:00
Folkert
a1a7feca45
use VecSet in IntroducedVariables 2022-04-17 20:43:45 +02:00
Folkert
7b81c59009
Merge branch 'vecset-references' into builtins-in-roc 2022-04-17 20:32:38 +02:00
Folkert
d53a888540
Revert "use Vec instead of MutSet for references in can_ann"
This reverts commit d0b2cde1f4.
2022-04-17 20:32:20 +02:00
Folkert
9f453a7ba2
use vecset for non_closures 2022-04-17 20:30:32 +02:00
Folkert
c47460d792
use VecSet in recursive alias correction 2022-04-17 20:27:47 +02:00