Commit graph

2036 commits

Author SHA1 Message Date
Ayaz Hafiz
f2fc6e16ec
Remove loc_branches which is never read 2022-07-22 17:29:20 -04:00
Ayaz Hafiz
4031770836
Mark branch patterns degenerate when they don't bind symbols body needs 2022-07-22 17:26:45 -04:00
Richard Feldman
bf8711f2cb
Merge pull request #3605 from rtfeldman/wasm-test-cherrypicks
wasm test cherrypicks
2022-07-22 17:06:01 -04:00
Ayaz Hafiz
ed6ee71225
Add test when bound symbols differ in branch patterns, but no bound symbol is used 2022-07-22 16:51:44 -04:00
Ayaz Hafiz
ee516eaa2f
Don't send delayed errors if we're told to ignore problems 2022-07-22 16:51:29 -04:00
Ayaz Hafiz
b04764bdd6
Support parsing opaque destructures as first item in nested body
Closes #3198
2022-07-22 16:35:02 -04:00
Folkert
70fcb574dd
update layout helpers 2022-07-22 21:56:24 +02:00
Ayaz Hafiz
5ad04dcd2c
Emit runtime error when tag unions have an error type
Closes #3266
2022-07-22 15:46:09 -04:00
Folkert
6d88d4106f
remove dead code 2022-07-22 21:15:41 +02:00
Folkert
20c63cd2c9
add tests 2022-07-22 21:13:55 +02:00
Folkert
6cabf11cbc
gen tests with new tag layout 2022-07-22 21:13:55 +02:00
Folkert
9cb2bd04fd
fix from wasm32 RocResult implementation 2022-07-22 21:13:55 +02:00
Folkert
cd2311003e
pull out build_struct 2022-07-22 21:13:54 +02:00
Folkert
90e3021904
make pub(crate) 2022-07-22 21:13:54 +02:00
Folkert
e6104ee52f
update api usage in wasm backend 2022-07-22 21:13:53 +02:00
Folkert
4977d1c65e
use RocUnion constants for tag index 2022-07-22 21:13:53 +02:00
Folkert
366429303c
add RocUnion 2022-07-22 21:13:53 +02:00
Folkert
22fea90cd6
fix implementation of UnionLayout::tag_id_offset 2022-07-22 21:13:52 +02:00
Richard Feldman
fb0d7f0e19
Use UnionLayout::tag_id_offset in bindgen 2022-07-22 21:13:52 +02:00
Folkert
3ca8dfa3ef
add UnionLayout::tag_id_offset 2022-07-22 21:13:51 +02:00
Ayaz Hafiz
a56e4a37c3
Get rid of loop 2022-07-22 21:13:51 +02:00
Ayaz Hafiz
5d2cfa1482
Reflect newtypes in path instructions 2022-07-22 21:13:51 +02:00
Ayaz Hafiz
3dd481fbf9
Remove solve test 2022-07-22 21:13:50 +02:00
Ayaz Hafiz
4a50ab6d8e
Add nested no-payload gen test 2022-07-22 21:11:34 +02:00
Ayaz Hafiz
4fc59ffc12
Newtype destructures test for record that decay into their only arg 2022-07-22 21:11:32 +02:00
Ayaz Hafiz
43d7a63597
Improve quality of decision tree newtype unwrap gen test 2022-07-22 21:11:32 +02:00
Ayaz Hafiz
eee13a4aa3
Don't add path instructions for newtypes that decay into their args 2022-07-22 21:11:31 +02:00
Ayaz Hafiz
d4ad981448
Reproduce #3560
Part of #3560
2022-07-22 21:11:31 +02:00
Ayaz Hafiz
a03cf85529
Add a datatype 2022-07-22 13:02:22 -04:00
Ayaz Hafiz
e06cb6e1a7
Update ast 2022-07-22 12:57:27 -04:00
Ayaz Hafiz
d4cf9b8f8d
Apply is-open constraints to nested types
Closes #3459
2022-07-22 12:57:27 -04:00
Ayaz Hafiz
1d4e6acd41
Add test for when catchall branches are on different branches 2022-07-22 12:57:27 -04:00
Ayaz Hafiz
13b0ce7ca0
Make sure to apply "is-open" constraints at the very end of pattern constraining
Closes #3298
2022-07-22 12:57:27 -04:00
Ayaz Hafiz
613606a67d
Support inference options in solve tests 2022-07-22 12:57:26 -04:00
Folkert
3ffe5abff2
for real this time 2022-07-22 17:32:48 +02:00
Folkert
148b8a1020
just work... 2022-07-22 16:58:48 +02:00
Folkert
f1b775f8c7
aftur á ný 2022-07-22 16:25:54 +02:00
Folkert
213c79801a
ugh 2022-07-22 16:03:49 +02:00
Folkert
df953ca30b
disable platform-switching tests for now 2022-07-22 15:38:38 +02:00
Folkert
da6a6dcf1c
shorten file lifetime, maybe that helps? 2022-07-22 15:23:36 +02:00
Folkert
dad0336d71
Revert "deduplicate test"
This reverts commit 69428571c2.
2022-07-22 15:21:24 +02:00
Folkert
69428571c2
deduplicate test 2022-07-22 14:48:22 +02:00
Richard Feldman
53e7a41f27
Merge pull request #3606 from rtfeldman/bindgen-tag-alignment
bindgen tag alignment
2022-07-22 08:21:03 -04:00
Folkert de Vries
5aaccd2d5b
Merge pull request #3599 from rtfeldman/i3560
Compile newtypes that decay into non-newtypes in branch patterns
2022-07-22 13:48:11 +02:00
Folkert
6ab0b5069e
run the formatter 2022-07-22 13:45:51 +02:00
Folkert
ccd8821acf
fix test panic output formatting 2022-07-22 13:33:52 +02:00
Folkert
0e56753bf1
clippy 2022-07-22 13:16:05 +02:00
Folkert
f85d3243e9
fix implementation of UnionLayout::tag_id_offset 2022-07-22 13:12:44 +02:00
Richard Feldman
ab3501a2a3
Use UnionLayout::tag_id_offset in bindgen 2022-07-22 12:57:41 +02:00
Folkert
9c2e6fca0a
add UnionLayout::tag_id_offset 2022-07-22 12:53:24 +02:00