Ayaz
eca229e3d1
Merge pull request #6887 from roc-lang/in-layout-unit
2024-07-07 17:22:56 -05:00
Folkert
80a83f3935
when inserting into an interner, re-use Layout::UNIT when possible
...
it is prettier in debug output, and should also be more efficient
2024-07-07 23:11:36 +02:00
Ayaz Hafiz
0e52a7e069
Make sure FunctionKind is determined in all entry points
...
There are a lot of entry points for a Roc program. They should probably
be all consolidated into one, but for now, when FunctionKind is needed,
determine it from the environment. This fixes EXPERIMENTAL_ROC_ERASE for
`roc test` etc.
Also print the location of a failure when `internal_error!` is called. I
think this should panic instead, and I thought it used to - does anyone
know if that changed?
2024-07-07 16:01:14 -05:00
Folkert
2ec7f56643
add TODO comment
2024-07-06 16:21:03 +02:00
Folkert
ee3ac41a58
add assert to prevent UB?!
2024-07-06 16:14:34 +02:00
Folkert
26e6f1ca92
clippy
2024-07-06 16:14:34 +02:00
Folkert
d5394345de
format RustGlue.roc
2024-07-06 16:14:33 +02:00
Folkert
90b70c3df0
slightly optimize modified tracking
2024-07-06 16:14:33 +02:00
Folkert
f4bd41352b
use BorrowSignature::from_layouts
2024-07-06 16:14:33 +02:00
Folkert
14b02c5827
remove clone
2024-07-06 16:14:32 +02:00
Folkert
413d6621c0
clippy
2024-07-06 16:14:32 +02:00
Folkert
9c0408b28e
fix ui tests
2024-07-06 16:14:32 +02:00
Folkert
047779d981
WIP infer join points too
2024-07-06 16:14:29 +02:00
Folkert
0932c542ca
update mono tests
2024-07-06 16:12:01 +02:00
Folkert
4a121a2348
nothing we can do for by-pointer calls
2024-07-06 16:08:59 +02:00
Folkert
92100d710d
better panic message when glue command fails
2024-07-06 16:08:59 +02:00
Folkert
f361d79249
make a real fixed point
2024-07-06 16:08:59 +02:00
Folkert
48ddbec9d1
mono tests
2024-07-06 16:08:56 +02:00
Folkert
3cbec41d59
hook borrow inference up
2024-07-06 16:05:52 +02:00
Folkert
199558b661
basic transitive inference
2024-07-06 16:05:52 +02:00
Anton-4
1bcf30391b
Merge pull request #6819 from roc-lang/rust-1-77-2-upgrade
...
Rust 1.77.2 upgrade
2024-07-06 03:23:54 +02:00
Anton-4
81d18cc84b
use dead_code for Both
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-07-05 14:17:52 +02:00
Agus Zubiaga
13ba59a4cb
Fix hang on qualified import with builtin name
2024-07-03 12:40:53 -03:00
Luke Boswell
f69d39dffc
Merge pull request #6808 from roc-lang/process-host
...
Update preprocess host API
2024-07-03 10:23:44 +10:00
Luke Boswell
a44a6889bd
Merge pull request #6851 from kdziamura/last-expr-desugar
...
Simplify Defs parsing
2024-07-02 08:48:31 +10:00
Ryan Barth
3edc551043
chore: cargo fmt
2024-07-01 15:01:32 -07:00
shua
d90da3af52
rm TotallyNotJson
...
TotallyNotJson.roc now lives on the farm in virtual-dom-wip as Json.roc.
Any reference in stdlib or builtins has been removed, as well as the
last places it was used (in python/ruby-interop examples).
2024-07-01 20:37:23 +02:00
shua
67f555feea
test_mono, uitest: rm stdlib Json dependency
...
use the same tag len fmt introduced in test_gen/gen_abilities tests
2024-07-01 20:36:28 +02:00
shua
0faa1d5f20
test_gen: replace stdlib Json with inline implementation
...
Towards the goal of removing Json from stdlib, this change replaces
usage of TotallyNotJson in test_gen/gen_abilities with a simple usable
inline implementation of Encoder/DecoderFormatting.
Similarly, the use of TotallyNotJson in test_reporting is not necessary
at all and is replaced with a Decoder that wouldn't actually work, but
which does compile.
2024-07-01 20:30:05 +02:00
Kiryl Dziamura
819cfd6035
fix test snapshots
2024-07-01 19:48:00 +02:00
Kiryl Dziamura
6329389972
add tests
2024-07-01 19:47:49 +02:00
Kiryl Dziamura
1008b94259
fix returned expression desugaring
2024-07-01 19:46:59 +02:00
Kiryl Dziamura
c4b63aa80a
simplify defs parsing
2024-07-01 19:44:32 +02:00
Kiryl Dziamura
de9ed734c5
remove EmptyDefsFinal
2024-07-01 18:45:23 +02:00
Ryan Barth
43f970f813
fix: count all symbols to err on the side of over allocating
2024-06-30 23:17:20 -07:00
Ryan Barth
3fe2a4cd13
refactor: remove duplicate symbol functions from macho module
2024-06-30 23:01:32 -07:00
Ryan Barth
720ed2a457
fix: calculate windows dll symbols from prebuilt shared library
2024-06-30 22:56:14 -07:00
Richard Feldman
e421ef61be
Use internal_error over panic
2024-06-30 08:19:37 -04:00
Richard Feldman
1caebcff56
Update some error macro docs
2024-06-30 08:18:49 -04:00
Richard Feldman
f0f8d76055
Remove heap_alloc for now
2024-06-30 08:17:35 -04:00
Richard Feldman
39144a198d
Make error_and_exit inline(never) and cold
2024-06-30 08:17:35 -04:00
Richard Feldman
6102e38f33
Use target_arch if targeting wasm (so wasi works)
2024-06-30 08:17:34 -04:00
Richard Feldman
2253e849d4
clippy
2024-06-29 23:20:44 -04:00
Richard Feldman
28be4e5ee2
Make some things non-pub that don't need to be pub
2024-06-29 21:17:42 -04:00
Richard Feldman
863c97330d
Use constants for error message strings
2024-06-29 21:15:23 -04:00
Richard Feldman
99eb5bfe1e
Support formatting strings in error macros
2024-06-29 21:09:17 -04:00
Richard Feldman
101621bd5a
Make error_macros be no_std
2024-06-29 20:53:06 -04:00
Kiryl Dziamura
9c133f72d8
test bang in dbg arg
2024-06-28 13:31:47 +02:00
Kiryl Dziamura
aa17d17c60
handle bang in dbg arg
2024-06-28 13:26:38 +02:00
Luke Boswell
b92d0ef315
fix host_dest in preprocessed_host
2024-06-28 15:25:07 +10:00