Commit graph

696 commits

Author SHA1 Message Date
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
cd98f20989
build wasm3 the normal way 2022-07-22 12:43:17 +02:00
Folkert
6bfe16113d
clippy 2022-07-22 12:29:46 +02:00
Folkert
4c66db7cbe
stop linking wasi; it is unused 2022-07-22 12:23:10 +02:00
Folkert
03fec5f21c
improve error message 2022-07-22 12:22:36 +02:00
Folkert
8cec4c41f8
define send_panic_msg_to_rust in our debug-wasm-test.html 2022-07-22 12:22:19 +02:00
Folkert
e8b7d27e73
use just one temp dir in wasm llvm tests 2022-07-22 12:22:02 +02:00
Folkert
f1d238cccf
add env var to make the final wasm file be written 2022-07-22 12:19:29 +02:00
Folkert
71d80a08d2
remove wasm helpers into the mod for reuse 2022-07-22 12:19:19 +02:00
Folkert
3ca24a6476
implement wasm memory traits for 4-tuples 2022-07-22 12:18:31 +02:00
Folkert
7e0e635f60
split out ok and err withDefault tests 2022-07-22 12:17:08 +02:00
Folkert
f1ce8b89a0
List.map: send the alignment of the output list element to zig 2022-07-22 12:16:54 +02:00
Folkert
d82e73fff0
ownership; always tricky 2022-07-22 12:11:32 +02:00
Folkert
5f8d2df0fa
use new OUT_DIR for llvm wasm backend 2022-07-22 12:10:10 +02:00
Folkert
ba7ffab790
make wasm test harness work with by-pointer values being returned 2022-07-22 12:09:20 +02:00
Folkert
291b77c83b
stop escaping roc panic strings in the llvm helpers 2022-07-22 12:06:44 +02:00
Folkert
9f80aa4df7
store string correctly on 32-bit platforms 2022-07-22 12:06:04 +02:00
Folkert
2fe590abf4
store list in a shorter way 2022-07-22 12:05:29 +02:00
Richard Feldman
b7d78d9237
Merge pull request #3598 from rtfeldman/i3558
Compile variables bound in multiple patterns of a branch, and detect unbound patterns
2022-07-21 16:45:52 -04:00
Ayaz Hafiz
961cff94d1
Only permit shadowing past first pattern 2022-07-21 14:35:16 -04:00
Richard Feldman
fac29615c8
Merge pull request #3590 from rtfeldman/update-wording
Update wording on a type mismatch
2022-07-21 14:29:23 -04:00
Folkert de Vries
a432874290
Merge pull request #3592 from rtfeldman/main-dot-roc
Advise using `roc run` with no arg if running `main.roc`
2022-07-21 18:36:39 +02:00
Ayaz Hafiz
0259c3cf92
s/occurences/occurrences/g 2022-07-21 12:29:09 -04:00
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
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
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