Commit graph

6636 commits

Author SHA1 Message Date
Ayaz Hafiz
4839c1f1ce
Clippy doesn't like stack spills. Sorry clippy! 2022-07-21 12:26:42 -04:00
Ayaz Hafiz
7fbdbca4c6
Add multi-branch bound pattern solve test 2022-07-21 12:22:27 -04:00
Ayaz Hafiz
92e363f4ef
Add non-basis test gen case for compiling branches with unbound patterns 2022-07-21 12:19:46 -04:00
Ayaz Hafiz
78dc82867a
Report errors for identifiers not bound in all patterns of a branch 2022-07-21 12:15:05 -04:00
Ayaz Hafiz
ce8b50caea
Support bound variables in multiple patterns 2022-07-21 11:40:09 -04:00
Ayaz Hafiz
bf8fc0d0de
Permit binding variables multiple itmes in when branches 2022-07-21 11:06:40 -04:00
Richard Feldman
e7a76fba0f
Merge remote-tracking branch 'origin/trunk' into update-wording 2022-07-21 11:01:08 -04:00
Folkert
2caf58dfd2
show preceding comment in test panic messages 2022-07-21 10:42:58 -04:00
Folkert
5a93da5a11
some work on expect comment regions 2022-07-21 10:42:57 -04:00
Folkert
7597d11b59
parse the region of the preceding comment for an expect 2022-07-21 10:42:57 -04:00
Folkert
9d294b459e
thread top-level expect region through 2022-07-21 10:42:57 -04:00
Folkert
7e5476aa58
report panicking tests (not pretty yet) 2022-07-21 10:42:57 -04:00
Richard Feldman
3129225951
Only print an inc_dec warning in debug builds 2022-07-21 10:42:57 -04:00
Folkert
b6f1fd6f40
constrain expects in the right order 2022-07-21 10:42:57 -04:00
Folkert
c2206f3e4d
substitute into expect 2022-07-21 10:42:56 -04:00
Ayaz Hafiz
29b37a10df
Correctly use module name in linked functions 2022-07-21 09:02:04 -04:00
Joshua Warner
31455f5fbd Remove first newline and indent from string 2022-07-20 19:20:48 -07:00
Joshua Warner
61b1ab059a Add test for removing indents in multiline strings 2022-07-20 19:20:10 -07:00
Richard Feldman
eacc65e07f
Revise message for trying to run non-app modules 2022-07-20 16:58:52 -04:00
Richard Feldman
3972664e48
Rename Category::Float to Category::Frac 2022-07-20 10:49:05 -04:00
Folkert de Vries
71edc445d2
Merge pull request #3587 from rtfeldman/i3571
Compile higher-order low-level calls that take functions with no closure args
2022-07-20 08:55:54 +02:00
Joshua Warner
a1512dfd79 Introduce State::advance_mut and State::consume_mut to simplify things 2022-07-19 19:20:38 -07:00
Joshua Warner
7a594901dd Refactor: inline simple advance_state macro 2022-07-19 17:01:33 -07:00
Brian Carroll
8e4fd629eb
Wasm: Handle closure data that's a lambda set with no closure data 2022-07-20 00:28:36 +01:00
Ayaz Hafiz
2cdb951752
Compile higher-order low-level calls that take functions with no closure args
Closes #3571
2022-07-19 15:50:36 -04:00
Ayaz Hafiz
8f5580c0a5
Clippy 2022-07-19 15:04:01 -04:00
Ayaz Hafiz
b4f45215ea
Fix solve tests 2022-07-19 15:02:52 -04:00
Ayaz Hafiz
3a57af8731
Format Json.roc 2022-07-19 14:30:20 -04:00
Ayaz Hafiz
cf158d21ed
Fix comment 2022-07-19 14:30:20 -04:00
Ayaz Hafiz
7586a8a083
Check complete ability implementations during canonicalization 2022-07-19 14:30:20 -04:00
Ayaz Hafiz
37ab06b0a3
Reject implementations that don't point to abilities 2022-07-19 14:30:19 -04:00
Ayaz Hafiz
a53de2e05c
Add a comment 2022-07-19 14:30:19 -04:00
Ayaz Hafiz
e4af8af1a3
Report duplicate implementations for ability members 2022-07-19 14:30:19 -04:00
Ayaz
7b9b855dcc
Merge pull request #3579 from rtfeldman/can-abilities
Canonicalize syntactic abilities
2022-07-19 13:30:12 -05:00
Ayaz Hafiz
666becad87
Clippy 2022-07-19 08:14:12 -04:00
Brendan Hansknecht
7526f7069b
Revert "use general roc store instead of specific llvm store"
Not sure why but this is wrong for some pointer reasons?

This reverts commit b190b09b78.
2022-07-18 22:35:52 -07:00
Brendan Hansknecht
057e4ea57a
ensure sret is actually pointer type instead of just assuming 2022-07-18 22:35:39 -07:00
Brendan Hansknecht
8bc6131b3d
Merge branch 'trunk' into gen-dev/quicksort 2022-07-18 22:05:45 -07:00
Brendan Hansknecht
9c35d29c24
correct sret to use the element type and not the pointer type 2022-07-18 22:04:34 -07:00
Brendan Hansknecht
b190b09b78
use general roc store instead of specific llvm store 2022-07-18 21:53:01 -07:00
Ayaz Hafiz
92b5b0ef42
Fix gen tests 2022-07-18 22:19:10 -04:00
Ayaz Hafiz
0b74620a8f
Update mono tests 2022-07-18 22:15:22 -04:00
Ayaz Hafiz
c189f27fb0
Fix mono tests 2022-07-18 22:14:47 -04:00
Ayaz Hafiz
f3105eca6e
Format Json.roc 2022-07-18 22:14:39 -04:00
Folkert
fc891c0956
the lazier thing 2022-07-18 22:13:25 -04:00
Richard Feldman
2b0bfbb590
Merge pull request #3543 from rtfeldman/http-sync
Http example
2022-07-18 21:35:23 -04:00
Ayaz Hafiz
d2da395619
Syntactic ability links in solve 2022-07-18 18:33:28 -04:00
Ayaz Hafiz
4d0c1e6a9c
Use insta for inferred queried tests 2022-07-18 17:55:02 -04:00
Ayaz Hafiz
159ddd3906
Fix gen tests 2022-07-18 17:55:02 -04:00
Ayaz Hafiz
17f53a23a5
Update tests 2022-07-18 17:55:02 -04:00