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
Richard Feldman
5d0026b7a2
Fix Package-Config.roc parse errors panicking
2022-02-06 08:03:45 -05:00
Richard Feldman
f8fc9cf577
Reproduce code gen crash
2022-02-06 07:39:16 -05:00
Richard Feldman
c59aa22402
Reproduce mono::ir panic
2022-02-06 07:38:32 -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
Richard Feldman
9b05d8dd50
Move expect
zig code out of utils
2022-02-02 19:15:47 -05:00
Richard Feldman
06203163eb
Use mutex more in expect failures
2022-02-02 18:59:34 -05:00
Richard Feldman
3e9eef4d0e
Add some TODO comments
2022-02-02 18:47:18 -05:00
Richard Feldman
dd8f63b1ab
Add some #[repr(C)] annotations
2022-02-02 18:47:02 -05:00
Folkert
16a2b660c3
bookkeeping
2022-02-02 23:11:52 +01:00
Folkert
3829c629f1
thread hosted info through
2022-02-02 22:57:24 +01:00
Folkert
5699db99b3
generate hosted functions (foreign functions supplied by the linker)
2022-02-02 22:29:05 +01:00
Folkert
14c0caa275
generate the Effect type and after/map/etc methods in a hosted module
2022-02-02 16:49:56 +01:00
Folkert
c335a8b406
move effect_module.rs
2022-02-02 16:48:59 +01:00
Folkert
1fb746757c
pipe module name into canonicalization of modules
2022-02-02 16:01:31 +01:00
ayazhafiz
e7dcc2daa5
Move NumWidth to roc_can
2022-02-02 00:23:43 -05:00
ayazhafiz
ae5766fdf5
Folkert's suggestions
2022-02-01 23:42:28 -05:00