Commit Graph

18695 Commits

Author SHA1 Message Date
Folkert
f3f6f58d09
clippy fixes 2022-08-21 16:43:57 +02:00
Richard Feldman
0ba5b3cfc6
Merge pull request #3711 from roc-lang/record-decoding
Record decoding and their derivers
2022-08-15 22:06:34 -04:00
Richard Feldman
56a833053a
Add Marko Vujanic to AUTHORS
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2022-08-15 20:42:57 -04:00
Brian Carroll
fa1a870d4b
Merge pull request #3791 from roc-lang/dependabot/cargo/indoc-1.0.7
Bump indoc from 1.0.6 to 1.0.7
2022-08-15 21:04:16 +01:00
Brian Carroll
2227b3d11d
Merge pull request #3813 from roc-lang/dependabot/cargo/crossbeam-0.8.2
Bump crossbeam from 0.8.1 to 0.8.2
2022-08-15 21:03:09 +01:00
Richard Feldman
caf49e6a64
Merge pull request #3812 from ultrox/patch-1
Update Tutorial Link from getting_started
2022-08-15 14:57:26 -04:00
Richard Feldman
5fefe8148a
Merge pull request #3774 from roc-lang/faq-basic-website
FAQ basic website
2022-08-15 13:07:15 -04:00
Ayaz Hafiz
bb6137a020
Reset hello world example 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
bed9b57b58
Add ignored empty record decoding test 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
21c3d0cafa
Add test for string and int record decoding 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
51faeaf9af
Fix doc comment 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
3770db5d70
Add test for underivable optional record 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
68441479b8
Add decoding record derive key tests 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
07cac2b4ce
Avoid non-consuming iterators 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
434e202580
Make sure to chase extension variable in record deriving 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
80c939f21e
Remove temporary 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
ed23461165
Only open extension variable when feature is turned on 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
9a7e280e9c
Add some more comments to record decoding 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
b698e7f391
Remove mono test 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
0f58328d3d
Use wrap_in_decode_custom_decode_with for decode record 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
23c6e6ea87
Add a wrap_in_decode_custom_decode_with helper for decode deriving 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
60ed17155c
Check in gen test for record decoding! 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
44a746b473
Update derive decoder test 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
634e9a2b69
Remove dbgs 2022-08-15 11:11:35 -05:00
Ayaz Hafiz
07392a35a7
Populate type of decoded record completely 2022-08-15 11:11:35 -05:00
Ayaz Hafiz
e93145180e
Better debug symbols for derivers 2022-08-15 11:11:35 -05:00
Ayaz Hafiz
6a0abdd32d
Revert "Show that putting the decoder in a different module works"
This reverts commit 7f1a850bef12aa9f55dbbed34030c8a07f82d2a4.
2022-08-15 11:11:35 -05:00
Ayaz Hafiz
8b80f10e56
Show that putting the decoder in a different module works 2022-08-15 11:11:35 -05:00
Ayaz Hafiz
c591496bc5
Check in the fully inlined version of record decoder 2022-08-15 11:11:35 -05:00
Richard Feldman
639df6c8c0
Unify this_decode_with_var 2022-08-15 11:11:35 -05:00
Richard Feldman
b3b6a7ee9f
Type-check lots of step_field 2022-08-15 11:11:35 -05:00
Ayaz Hafiz
f299288912
Revert "Reproduce panics without type annotations"
This reverts commit 0c82ba955094be0f454d952066576f8daee94c83.
2022-08-15 11:11:34 -05:00
Ayaz Hafiz
d93c814fe6
Reproduce panics without type annotations 2022-08-15 11:11:34 -05:00
Ayaz Hafiz
de26b28374
Make the generalized decoder version work 2022-08-15 11:11:34 -05:00
Ayaz Hafiz
5e6b4312b2
Revert "Show that putting the decoder in a different module works"
This reverts commit 7f1a850bef12aa9f55dbbed34030c8a07f82d2a4.
2022-08-15 11:11:34 -05:00
Ayaz Hafiz
221861b506
Show that putting the decoder in a different module works 2022-08-15 11:11:34 -05:00
Ayaz Hafiz
fd52075a6f
Check in the fully inlined version of record decoder 2022-08-15 11:11:34 -05:00
Richard Feldman
c34427bbf9
Rename record_var to initial_state_var 2022-08-15 11:11:34 -05:00
Ayaz Hafiz
d01c5c83b7
Check in gen tests that don't work yet 2022-08-15 11:11:33 -05:00
Ayaz Hafiz
f95c5aee12
Check in derived record impl 2022-08-15 11:11:33 -05:00
Ayaz Hafiz
66f75b86ee
Fix ROC_PRINT_UNIFICATIONS_DERIVED 2022-08-15 11:11:33 -05:00
Ayaz Hafiz
a276578642
Use some flex vars where they're needed for constraining 2022-08-15 11:11:33 -05:00
Ayaz Hafiz
e2e5faa28a
Rename to state_record_var 2022-08-15 11:11:33 -05:00
Ayaz Hafiz
1e1c44264f
Make sure to use result from inserting into subs, rather than uninit buffer 2022-08-15 11:11:33 -05:00
Richard Feldman
89f947f3ae
Finish setting up types for derived decoders 2022-08-15 11:11:33 -05:00
Richard Feldman
ddd462ec8b
Finish step 2022-08-15 11:11:33 -05:00
Richard Feldman
0579d84bf0
Set types for Keep/Skip 2022-08-15 11:11:32 -05:00
Richard Feldman
bccfa55179
Unify more derived decoder things 2022-08-15 11:11:32 -05:00
Richard Feldman
33548874d3
Drop some doc comments 2022-08-15 11:11:32 -05:00
Richard Feldman
8289458eee
Unify this_decode_with_var 2022-08-15 11:11:32 -05:00