Commit graph

8932 commits

Author SHA1 Message Date
Nikita Mounier
2a56463b74
Fix typo in test_load. 2022-04-12 01:23:49 +00:00
Nikita Mounier
895ba92239
Change expected types in test_load. 2022-04-12 01:21:24 +00:00
Kevin Gillette
1c3700e22e
Minor typo/formatting fixes 2022-04-11 19:11:37 -06:00
Nikita Mounier
6b2d1a7af6
Remove outdated comments. 2022-04-11 23:36:30 +00:00
Nikita Mounier
dbb91639e9
Revert weird changes in tests. 2022-04-11 21:33:22 +00:00
Nikita Mounier
20b9f6377c
Fix f64 ambiguity in test. 2022-04-11 19:43:21 +00:00
Nikita Mounier
799c05f183
Fix test. 2022-04-11 17:56:43 +00:00
Nikita Mounier
1d5ab1d79c
Merge remote-tracking branch 'origin/trunk' into div-no-result 2022-04-11 17:51:38 +00:00
Brian Carroll
c950f6d834 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-linking-zig9 2022-04-11 18:34:43 +01:00
Richard Feldman
d81228df80
cargo fmt 2022-04-11 13:17:46 -04:00
Brian Carroll
a7a84019cd wasm: Get List.map3 working 2022-04-11 14:36:31 +01:00
Brian Carroll
7b96e953ba wasm: Get List.map2 working 2022-04-11 14:36:31 +01:00
Brian Carroll
5cce24bc8f wasm: improve debug logging 2022-04-11 14:36:31 +01:00
Brian Carroll
6de8892e88 module: ensure dev backends don't eliminate wrapper functions for higher-order builtins 2022-04-11 14:36:31 +01:00
Brian Carroll
a663d335fc repl_test: update build.rs to work with Zig 0.9 (like test_gen) 2022-04-11 14:19:56 +01:00
Nikita Mounier
1df1b4bc84
Fix typo. 2022-04-11 12:34:23 +00:00
Nikita Mounier
8206f345c7 Merge remote-tracking branch 'origin/trunk' into div-no-result 2022-04-11 11:45:06 +00:00
Nikita Mounier
9182bb5773 Add toF32/64 checked versions in symbol.rs to avoid conflict. 2022-04-11 11:35:56 +00:00
Nikita Mounier
4ecf2a8c24 Modify division behaviour to panic when dividing by 0, and add divChecked, divFloorChecked and divCeilingChecked` for safe alternatives which return a Result, mimicking the previous behaviour. 2022-04-11 11:23:33 +00:00
Brian Carroll
249925cb23 wasm: Work around Zig returning small structs as integers 2022-04-11 11:28:40 +01:00
Brian Carroll
2473b84ded test_gen: Ensure preloaded Wasm object has both relocations and libc code 2022-04-11 11:28:36 +01:00
Folkert
e281ca7152
remove dependency 2022-04-10 21:42:39 +02:00
Folkert
2cb175df10
use cached subs, run solve tests single-threaded 2022-04-10 21:22:15 +02:00
Folkert
78735b6159
remove unused code 2022-04-10 21:15:29 +02:00
Folkert
823d4678a8
import Box in box tests 2022-04-10 20:12:59 +02:00
Folkert
6ef443d1b0
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-10 19:14:00 +02:00
Folkert
52b58ecdf3
don't write to (temp) file in solve tests 2022-04-10 16:22:35 +02:00
Folkert de Vries
7675e0232b
Merge pull request #2819 from rtfeldman/zero-arg-tag
Drop unused `arguments` field from `ZeroArgumentTag`
2022-04-10 15:18:03 +02:00
Ayaz Hafiz
a102a7497e
Support box/unbox for types that are typically only on the stack
Closes #2786
2022-04-09 16:22:01 -04:00
Brian Carroll
1e5f659be1 wasm: Use Export section to initialise Name section
Works even if the preloaded Name section is missing.
2022-04-09 16:50:22 +01:00
Richard Feldman
e9acbe983f
Use array over vec for exists_many 2022-04-09 10:09:03 -04:00
Folkert
a4c8ebd55e
fix can tests; qualify imports from num 2022-04-09 14:41:45 +02:00
Folkert
a15ff20eec
give back the subs of the root module (for the repl) 2022-04-09 14:11:50 +02:00
Folkert
9d966d439f
fix solve tests 2022-04-09 12:29:49 +02:00
Folkert
166c949c3b
clippy 2022-04-09 12:24:12 +02:00
Folkert
bdfed2e699
disable usage of cached modules, but do the caching 2022-04-09 12:23:47 +02:00
Folkert
691e8ee068
remove unused alias code 2022-04-09 12:23:30 +02:00
Folkert
c9b29c773f
simplify GeneratedInfo 2022-04-09 12:23:18 +02:00
Folkert
37bb19b032
for now always generate constraints 2022-04-09 12:13:20 +02:00
Folkert
76037de335
ignore test for now 2022-04-09 12:11:11 +02:00
Folkert
4d780ec090
disable use of cached subs temporarily 2022-04-09 12:05:35 +02:00
Folkert
d2756919fd
treat Box.Box as a builtin opaque type 2022-04-09 12:04:12 +02:00
Folkert
a7c87af065
typo 2022-04-09 11:39:57 +02:00
Folkert
c32f851394
explicitly import Box 2022-04-09 11:35:06 +02:00
Folkert
fe77cb3b16
write functions, that can be written in roc, in roc 2022-04-09 11:34:24 +02:00
Richard Feldman
babe281b5d
Merge pull request #2780 from rtfeldman/no-link
Add --no-link flag for more complex linking cases
2022-04-08 23:49:48 -04:00
Richard Feldman
dd56fdb61c
Fix regression with ZeroArgumentTag constraint gen
Turns out it can't share quite that much code with Tag,
because doing so skips the important function-based
constraints.
2022-04-08 21:31:19 -04:00
Richard Feldman
b2ff785a5e
Another clip bites the clip 2022-04-08 19:56:43 -04:00
Nikita Mounier
f080180b1d
Allow ZigVersion enum to have dead code (unused case)
Quick and dirty PR to suppress warning when building / running compiler that says:
```rust
warning: variant is never constructed: `Zig8`
   --> compiler/gen_wasm/src/layout.rs:143:5
    |
143 |     Zig8,
    |     ^^^^
    |
    = note: `#[warn(dead_code)]` on by default
```
I'm guessing that the `Zig8` case will be used at some point, so outright deleting the case seemed hasteful to me.
2022-04-08 20:24:07 +00:00
Folkert de Vries
5dc8c852e9
Merge pull request #2815 from rtfeldman/i/2811
Specialize polymorphic values before binding to pattern
2022-04-08 21:44:11 +02:00