Commit graph

4827 commits

Author SHA1 Message Date
Ayaz Hafiz
e2326efd0b
Include real_var when checking occurs
The real_var can have occurs that aren't represented by the type
variables, especially in the presence of recursive checks.
2022-07-14 12:26:34 -04:00
Ayaz Hafiz
20c2c308fa
Include ZATs in host exposed aliases 2022-07-14 12:26:11 -04:00
Richard Feldman
24df6ef93b
Get Result layouts from vars 2022-07-14 12:23:36 -04:00
Ayaz Hafiz
161c2101a7
Properly link lambda set variables in host exposed aliases 2022-07-14 12:20:39 -04:00
Anton-4
632f153b3e
use legacy linker for all tests until #3540 is fixed 2022-07-14 18:02:08 +02:00
Folkert
f0707fd92b
use OUT_DIR in wasm repl module building 2022-07-14 17:58:43 +02:00
Folkert
a75af513c1
remove extra layer of quotes 2022-07-14 17:57:40 +02:00
Folkert de Vries
1b1b63aad0
Merge branch 'trunk' into assoc-list-dict 2022-07-14 16:47:50 +02:00
Ayaz Hafiz
d4d073d8c6
Rename Derived to HasAbility 2022-07-14 10:38:37 -04:00
Richard Feldman
897c6b17df
cargo fmt 2022-07-14 10:22:40 -04:00
Ayaz Hafiz
0946a7816a
Rename has_derived to has_abilities 2022-07-14 09:58:18 -04:00
Richard Feldman
5b4ce91138
Merge pull request #3534 from rtfeldman/reorganize-bindgen
Move RocType helpers into bindgen_rs
2022-07-14 09:41:07 -04:00
Ayaz Hafiz
3f7c91f988
Where there's clippy, there's no way 2022-07-14 09:24:08 -04:00
Ayaz Hafiz
94ab904b6f
Fix compile errors 2022-07-14 09:02:37 -04:00
Ayaz Hafiz
02526b6dc2
Mark deriving test for encoding tags as complete 2022-07-14 08:49:46 -04:00
Ayaz Hafiz
b1867a97d2
Unignore test 2022-07-14 08:49:46 -04:00
Ayaz Hafiz
276bb173a0
Add gen tests for derived tag encoders 2022-07-14 08:49:46 -04:00
Ayaz Hafiz
2ca86c84dc
Gen derived tag encoders with multiple payloads 2022-07-14 08:49:46 -04:00
Ayaz Hafiz
ad5d6a4f84
Copy patterns 2022-07-14 08:49:45 -04:00
Ayaz Hafiz
1cf1e114be
Derive tag union encoders 2022-07-14 08:49:45 -04:00
Ayaz Hafiz
9aa3cb8d33
Use Derived_synth for synthesizing implementations, and Derived_gen for codegen 2022-07-14 08:49:45 -04:00
Ayaz Hafiz
8311fb553f
Update mono tests 2022-07-14 08:49:45 -04:00
Ayaz Hafiz
a23604cd07
Compact lambda sets with structural derived ability impls 2022-07-14 08:49:45 -04:00
Ayaz Hafiz
6141e8ff76
Perfom derives from global derives module, not just symbol table 2022-07-14 08:49:44 -04:00
Ayaz
a9243720da
Merge pull request #3496 from rtfeldman/derive-w-mono
Monomorphize and compile derived implementations
2022-07-14 07:45:21 -05:00
Folkert
864ae3b936
wasi-libc-sys: use environment variables to translate from build.rs to a const, instead of rust code generation 2022-07-14 12:11:42 +02:00
Folkert de Vries
4a9a1b301f
Merge pull request #3533 from rtfeldman/bindgen-functions
Partially bindgen functions
2022-07-14 10:20:37 +02:00
Folkert de Vries
cab1ec0be5
Merge pull request #3532 from rtfeldman/3504
Wrap opaque types in the repl with the appropriate opaque wrapper
2022-07-14 10:04:41 +02:00
Folkert
88a9fab865
clippy 2022-07-14 08:56:23 +02:00
Folkert
488a4ca730
update test 2022-07-14 08:54:42 +02:00
Folkert
96414cb03f
cleanup 2022-07-14 08:52:38 +02:00
Richard Feldman
87bb1d7b3d
Update formatting tests 2022-07-13 23:19:28 -04:00
Richard Feldman
7908e8c176
roc format examples 2022-07-13 23:16:09 -04:00
Richard Feldman
7ed35eca50
roc format builtins 2022-07-13 23:16:09 -04:00
Richard Feldman
47dd3743e7
Revert "Don't keep comments right after the ->"
This reverts commit 326337ae00624e7f326ce92aa473a48283bcbf98.
2022-07-13 23:16:08 -04:00
Richard Feldman
18be76ea43
Don't keep comments right after the ->
(at least not when the branch is a multiline expr!)
2022-07-13 23:16:08 -04:00
Richard Feldman
d3f5117d76
Revert "Simplify some branch formatting logic"
This reverts commit 597055c1e580363f8645d3f9cc74134bd1e07bbe.
2022-07-13 23:16:08 -04:00
Richard Feldman
b51c8b0ba4
Simplify some branch formatting logic 2022-07-13 23:16:08 -04:00
Richard Feldman
fa877e4184
Revert "Special-case records, lists, functions in def fmt"
This reverts commit c0b4ceea9b1d817c923eb82fa3ff7a36db90199f.
2022-07-13 22:32:42 -04:00
Richard Feldman
2be68189b4
Special-case records, lists, functions in def fmt 2022-07-13 22:32:42 -04:00
Richard Feldman
8178f22ce4
Always put a newline after a binop def body 2022-07-13 22:32:41 -04:00
Richard Feldman
9e19baef59
Don't indent next expr after multiline binop 2022-07-13 22:05:04 -04:00
Richard Feldman
2013e308f7
Update parser tests 2022-07-13 22:02:56 -04:00
Richard Feldman
d67d118e61
Don't require indenting alternative when patterns 2022-07-13 22:02:38 -04:00
Richard Feldman
28e0a9e382
Don't indent multiple patterns 2022-07-13 21:50:30 -04:00
Richard Feldman
f066ee12dc
Don't indent multiline infix operators 2022-07-13 21:40:28 -04:00
Richard Feldman
f2b3ae482b
bindgen RocType::EmptyTagUnion 2022-07-13 21:35:35 -04:00
Richard Feldman
9307dad86b
Bindgen Bool 2022-07-13 21:35:35 -04:00
Richard Feldman
5b1b17a74b
Bindgen empty tag union 2022-07-13 21:35:35 -04:00
Richard Feldman
c8cb8804b8
bindgen RocResult 2022-07-13 21:35:34 -04:00