Brian Carroll
8c5fe2ae22
wasm: implement Stmt::RuntimeError
2022-02-10 10:13:54 +00:00
Brian Carroll
0d08c97e44
wasm: enable a test that has a Stmt::RuntimeError
2022-02-09 17:23:36 +00:00
Brian Carroll
abfa4b1522
test_gen: allow non-llvm tests to expect errors
2022-02-09 17:23:36 +00:00
Brian Carroll
4b585cc6c6
wasm: More explicit todo! statements
2022-02-09 17:23:36 +00:00
Brian Carroll
858a3c3527
roc_load: Remove unused deadlock_detection feature of parking_lot crate, to enable Wasm REPL build
2022-02-08 11:03:48 +00:00
Brian Carroll
cff762afe5
Fix test_gen llvm
2022-02-08 11:03:48 +00:00
Brian Carroll
c21b2bd0da
Formatting and Clippy
2022-02-08 11:03:48 +00:00
Brian Carroll
0af4361f2a
repl: continue fleshing out the Wasm repl code. Generate wrapper function.
2022-02-08 11:03:48 +00:00
Brian Carroll
85b418ebdf
wasm: get rid of Result from gen_wasm, rename a function, improve comments
2022-02-08 11:03:48 +00:00
Brian Carroll
2fd2a85887
wasm: delete redundant enum TestType
2022-02-08 11:03:48 +00:00
Brian Carroll
c5ccc99e20
repl: rename Wasm32TestResult -> Wasm32Result
2022-02-08 11:03:48 +00:00
Brian Carroll
1783fa8009
repl: rename FromWasm32Memory -> FromWasmerMemory
2022-02-08 11:03:48 +00:00
Brian Carroll
e9871947d3
repl: move wasm32_test_result to gen_wasm, and extract Wasm32Sized from FromWasm32Memory
2022-02-08 11:03:48 +00:00
Brian Carroll
aaa5fa04cd
wasm: delete obsolete code
2022-02-08 11:03:48 +00:00
Folkert de Vries
ec1d2b5466
Merge pull request #2455 from rtfeldman/i/2413
...
Normalize c/Roc callconv parameters when C returns by pointer
2022-02-07 10:47:25 +01:00
ayazhafiz
1a1eaf7f68
Normalize c/Roc callconv parameters when C returns by pointer
...
Closes #2413
2022-02-06 21:57:14 -05:00
ayazhafiz
40196185a0
Specialize zero-argument thunks with the correct variable
...
Previously we would pass the annotation down as the
type-to-be-monomorphized for, but that would just mean the annotation
would unify with itself. We instead want to use the variable the thunk
is being used as to be the one unified with the thunk's annotation.
Closes #2445
Closes #2446
2022-02-06 20:58:13 -05:00
ayazhafiz
0d241f3c3c
Only expand ErrorType::Range
's type range when range unification fails
2022-02-06 15:04:13 -05:00
ayazhafiz
aaac22f6c2
Respell typo
2022-02-06 15:04:13 -05:00
ayazhafiz
ff3596505e
Fix gen tests
2022-02-06 15:04:12 -05:00
ayazhafiz
680bf8e0b7
Treat rigids as flex vars when checking number range types
2022-02-06 15:04:12 -05:00
ayazhafiz
6d72971d6b
Clippy and a ranged number unification bugfix
2022-02-06 15:04:12 -05:00
ayazhafiz
364d2585df
Fix repl tests
2022-02-06 15:04:12 -05:00
ayazhafiz
c5d918e68c
Include floats in bounds for unspecified numbers
2022-02-06 15:04:12 -05:00
ayazhafiz
3fffca48bb
Bye bye dead code!
2022-02-06 15:04:12 -05:00
ayazhafiz
c80c842a93
Clippy
2022-02-06 15:04:12 -05:00
ayazhafiz
8dc92ccd97
Second pass
2022-02-06 15:04:12 -05:00
ayazhafiz
5e0d90ac53
First pass
2022-02-06 15:04:12 -05:00
Folkert de Vries
d25e891fb0
Merge pull request #2451 from rtfeldman/fix-arc-panic
...
Fix Arc panic
2022-02-06 16:45:38 +01:00
Richard Feldman
3996ba1df8
Merge pull request #2450 from rtfeldman/check-generated-functions
...
Check generated functions
2022-02-06 09:07:59 -05:00
Richard Feldman
2c0948f69b
Test Package-Config parse error in test_load
2022-02-06 08:24:49 -05:00
Richard Feldman
589140983b
Support Package-Config.roc in test_load
2022-02-06 08:20:13 -05:00
Richard Feldman
dba03374db
Fix indentation in macro
2022-02-06 08:05:26 -05:00
Richard Feldman
7f5fc37612
Fix panic on parse error in Package-Config.roc
...
This previously led to the following panic if there was a parse error in Package-Config.roc: 'There were still outstanding Arc references to module_ids', /Users/rtfeldman/code/roc/compiler/load/src/file.rs:1530:33
2022-02-06 08:04:38 -05:00
Folkert
5e16515d22
only generate the functions that the user wants
2022-02-06 12:26:34 +01:00
Richard Feldman
881bae7267
Merge branch 'trunk' into fix-module-formatting
2022-02-04 23:03:52 -05:00
Folkert de Vries
1bb460262a
Merge pull request #2193 from rtfeldman/expect-dont-panic
...
Stores and retrieves expectation failures instead of panicking
2022-02-05 00:52:08 +01:00
Folkert
71cae79b02
fix annoying spaces debug_assert failure
2022-02-04 23:00:10 +01:00
Folkert
f02db3961a
fix parse tests
2022-02-04 22:51:18 +01:00
Folkert
5f1e2c60f8
change how hosted declarations are pushed
2022-02-04 21:56:57 +01:00
Richard Feldman
a8e3d5f9b6
Merge remote-tracking branch 'origin/trunk' into expect-dont-panic
2022-02-03 22:25:40 -05:00
Richard Feldman
9dea0e3a04
Automatically deallocate Failures in Rust
2022-02-03 22:17:53 -05:00
Folkert
f1ebc523b6
Merge remote-tracking branch 'origin/trunk' into hook-up-hosted-modules
2022-02-04 00:07:23 +01:00
Folkert
885500712c
remove old Effect module things
2022-02-03 23:55:02 +01:00
Folkert
a98635ed06
update other examples
2022-02-03 22:45:15 +01:00
ayazhafiz
21d1cd786c
Fix can tests
2022-02-03 00:43:04 -05:00
ayazhafiz
5362ed1e6c
Clippy
2022-02-02 23:38:54 -05:00
ayazhafiz
097c5afc73
Check lower bounds for numeric literals, and permit 128-bit literals
2022-02-02 23:35:57 -05:00
Richard Feldman
5d60677b5b
Fix defensive cloning
2022-02-02 23:08:12 -05:00
Richard Feldman
778d32f6b2
Acknowledge possibility of roc_alloc failing
2022-02-02 19:25:08 -05:00