Commit Graph

21 Commits

Author SHA1 Message Date
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
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
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
Ayaz Hafiz
c459757062
Thread simple model of "ErasedLambdas" through proc layouts
But none of these paths are yet exercised.
2023-07-12 13:53:52 -05:00
Fábio Beirão
9289f28939
Fix small typo on user_error macro
Unless this is an inside joke that I am not aware of 😅
2023-05-30 15:47:38 +02:00
Brendan Hansknecht
f42f61e271
run a toml formatter and then clean it up a bit 2023-03-06 19:47:57 -08:00
Brendan Hansknecht
4a89bee0a5
centralize package versions except for vendor and excluded 2023-03-06 19:29:09 -08:00
Brendan Hansknecht
5485c8a5b0
update to using workspace package spec 2023-03-06 16:36:18 -08:00
Luke Boswell
f3bdb5f321
updating rust package documentation 2022-11-03 20:00:06 +11:00
Jan Van Bruggen
4625a0a869
Rephrase CPU-related "platform"/"host" to "target"/"your machine" 2022-09-11 10:25:02 -06:00
Richard Feldman
97e2900bf5
s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Anton-4
6a15a7b41b
changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
Ayaz Hafiz
2e6d7bfa2a
Remove references to todo_opaques
Opaque types are now fully implemented so this can be removed. roc_ast
is going away in favor of can, so references there have been replaced
with internal_error.
2022-08-01 13:24:29 -05:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00