Commit graph

205 commits

Author SHA1 Message Date
Folkert
a55461d0f8
format 2022-07-07 13:40:37 +02:00
Brian Carroll
b1ea641cfb
wasm: enable more tests 2022-07-07 00:34:42 +01:00
Brian Carroll
c9a1600751
wasm: Fix List.map where the mapper has zero-size arguments 2022-07-07 00:05:56 +01:00
Brian Carroll
25a2eddf0f
wasm: Create a stack frame pointer for any function with a zero-size arg 2022-07-06 22:31:30 +01:00
Brian Carroll
a9aee13086
test_gen: support RocResult for Wasm tests 2022-07-06 22:01:03 +01:00
Brian Carroll
617e18af98
wasm: enable remaining List tests, except 2 panics 2022-07-06 22:01:02 +01:00
Brian Carroll
f132350ef3
wasm: implement List.sortWith 2022-07-06 22:01:01 +01:00
Brian Carroll
88bcb82fef
wasm: Don't eliminate inlined low-level wrappers. Need them for indirect calls. 2022-07-06 21:59:40 +01:00
Brian Carroll
86cb50ed09
test_gen: fix some list tests for 32-bit targets 2022-07-06 21:59:40 +01:00
Brian Carroll
e5e56a7795
wasm: Implement List.prepend 2022-07-06 21:59:37 +01:00
Richard Feldman
176322d099
Merge pull request #3429 from rtfeldman/fix-fmt-comments
Fix some formatter comment bugs
2022-07-06 16:49:56 -04:00
Folkert de Vries
957c4258b1
Merge pull request #3409 from rtfeldman/i3224
Compile lambdas that have an empty lambda set
2022-07-06 22:22:48 +02:00
Richard Feldman
d2476099a5
Add some tests for trailing commas in comments 2022-07-06 15:17:19 -04:00
Richard Feldman
9df5802848
Update formatter tests 2022-07-06 15:10:17 -04:00
Richard Feldman
4c5eb9b796
Ensure comments begin with space or newline 2022-07-06 15:10:17 -04:00
Richard Feldman
bd194af67c
Fix edge case in ensure_ends_in_newline 2022-07-06 15:10:17 -04:00
Richard Feldman
3195e0cff3
Improve a debug_assert! message 2022-07-06 15:10:17 -04:00
Richard Feldman
ca0b40cd9d
Use a pattern match over == 2022-07-06 15:10:16 -04:00
Richard Feldman
267bae5dec
Don't add more newlines than necessary 2022-07-06 15:10:16 -04:00
Richard Feldman
87b7a9ba3b
Update formatter tests 2022-07-06 14:01:53 -04:00
Richard Feldman
7e12171b76
roc format builtins 2022-07-06 14:00:40 -04:00
Richard Feldman
01434c8e28
Don't over-indent type alias defs 2022-07-06 13:55:45 -04:00
Richard Feldman
23a02a7a75
Don't over-indent module header collections 2022-07-06 13:46:11 -04:00
Ayaz Hafiz
8d2d0b02db
Fix mono tests 2022-07-06 12:57:58 -04:00
Ayaz Hafiz
20a9a9765a
Disable wasm test for now 2022-07-06 12:49:03 -04:00
ayazhafiz
b6ebb960c9
Update mono tests 2022-07-06 12:49:03 -04:00
ayazhafiz
efbd1bf4c7
Add unbound runtime error function var gen test 2022-07-06 12:49:02 -04:00
ayazhafiz
ab75de39d6
Fix gen for runtime error functions 2022-07-06 12:49:02 -04:00
ayazhafiz
41e63c8576
Add missing mono test 2022-07-06 12:49:02 -04:00
ayazhafiz
aa90c3dfb6
Unresolved type var for list map unbound function 2022-07-06 12:49:02 -04:00
ayazhafiz
937b73b797
Compile lambdas that have an empty lambda set
Closes #3224

This should also fix a number of other issues often observed when a
lambda is never actually called, but we fail to codegen because it has
an empty lambda set.
2022-07-06 12:49:01 -04:00
Richard Feldman
7365da6f69
Merge pull request #3370 from rtfeldman/list-unreachable
List unreachable
2022-07-06 10:45:50 -04:00
Richard Feldman
c9346b0744
Merge pull request #3418 from rtfeldman/repl-expect
repl expect
2022-07-06 09:40:40 -04:00
Ayaz
d07c273542
Merge pull request #3402 from rtfeldman/promote-large-numbers
Promote large number layouts when they don't fit in I64s
2022-07-06 08:50:46 -04:00
Folkert
0d59429061
primitives in the CLI for running top-level expectations 2022-07-06 14:17:50 +02:00
Folkert
3017a14599
rename 2022-07-06 14:07:52 +02:00
Jan Van Bruggen
0002cdf8ec
Merge pull request #3380 from rtfeldman/3377-list-range-segfault
Fixes `List.range` segfaulting
2022-07-06 00:59:01 -06:00
ayazhafiz
24b605a369
Wrap int properly 2022-07-05 23:16:59 -04:00
ayazhafiz
4a214fe75b
Write parens 2022-07-05 22:39:31 -04:00
ayazhafiz
e3ead18e8f
Unused var 2022-07-05 22:28:04 -04:00
ayazhafiz
5fea767411
Type ranged number as flex var 2022-07-05 22:27:30 -04:00
Ayaz Hafiz
26148b8b12
Recover default layouts for floats 2022-07-05 22:16:53 -04:00
Ayaz Hafiz
4ef8ceef9e
Clippy 2022-07-05 22:16:53 -04:00
Ayaz Hafiz
15afa36344
Push bound var down 2022-07-05 22:16:53 -04:00
Ayaz Hafiz
34d2d81ca6
Remove stray dbg 2022-07-05 22:16:53 -04:00
Ayaz Hafiz
2492fba9f9
Gen tests for promoted num layouts 2022-07-05 22:16:52 -04:00
Ayaz Hafiz
ba450367ca
Choose i128/u128 num layouts when necessary 2022-07-05 22:16:52 -04:00
Ayaz Hafiz
f31f78fde1
Add test for when U64 num literal layout should be chosen 2022-07-05 22:16:52 -04:00
Ayaz Hafiz
c154a337a9
Get deep range numbers working 2022-07-05 22:16:52 -04:00
Ayaz Hafiz
5a18490050
Support ordering floats in numeric literal bounds 2022-07-05 22:16:51 -04:00