Commit graph

6636 commits

Author SHA1 Message Date
Elias Mulhall
0a48962abe
replace unreachable! with internal_error! in expr canonicalization
See https://github.com/roc-lang/roc/issues/2046
2023-11-26 20:26:34 -05:00
George Ungureanu Vranceanu
23b6b432c7
Add log function to Dec 2023-11-25 21:03:26 +00:00
Folkert
104c44a754
ensure that when a switch case uses a callee-saved register, that register gets stored/restored properly 2023-11-25 20:18:37 +01:00
Folkert
85afcdd011
add clarifying comment to callee_saved 2023-11-25 19:54:51 +01:00
John Murray
38207cff8a
fix typo 2023-11-24 10:07:27 -05:00
John Murray
14478c888d
remove bad copy paste 2023-11-24 10:07:26 -05:00
John Murray
abc92ded95
add test for divCeil by 0 2023-11-24 10:07:26 -05:00
John Murray
863ecd8da5
be excited to panic... 2023-11-24 10:07:26 -05:00
John Murray
5df2199ef5
add test for dec division 2023-11-24 10:07:26 -05:00
John Murray
23e22693d4
switch @panic to roc_panic to really throw panics for bad numeric ops 2023-11-24 10:07:26 -05:00
Richard Feldman
5e911f14d8
Merge pull request #6057 from lsculv/record-field-error-typo
Fix typo 'I trying' -> 'I am trying'
2023-11-22 09:12:30 -05:00
Anton-4
d72621ac03
Merge pull request #5983 from HajagosNorbert/get-pointer
mono::ir::Expr::UnionFieldPtrAtIndex -> GetElementPointer
2023-11-22 14:59:37 +01:00
Norbert Hajagos
70a10e45c1
Merge branch 'main' into get-pointer 2023-11-22 08:30:38 +01:00
Lucas Culverhouse
3c05690997
Fix typo 'I trying' -> 'I am trying' 2023-11-21 17:33:57 -08:00
jecaro
57f55dbe7e
Fix typo 2023-11-21 19:47:27 +01:00
jecaro
55befee0b0
Dont swallow bad input while parsing spaces
Fix #5939
2023-11-21 19:47:17 +01:00
HajagosNorbert
d71b386715
Merge branch 'main' into get-pointer 2023-11-21 11:15:28 +01:00
HajagosNorbert
6975294278
format code & replace vec!(in arena;...) with arena.alloc([...]) 2023-11-21 11:09:42 +01:00
Brendan Hansknecht
af5b209c9f
misc cleanup suggestions 2023-11-20 21:33:47 -08:00
Brendan Hansknecht
2ef97fc5a1
update mono tests due to List.sublist change 2023-11-20 21:09:12 -08:00
Brendan Hansknecht
2de96ed5a8
add spread as test 2023-11-20 21:09:12 -08:00
Brendan Hansknecht
9cf0d5366f
add test case for exhaustiveness checking of list with rest and front and back 2023-11-20 21:09:12 -08:00
Brendan Hansknecht
bf7be1533b
fix indexing 2023-11-20 21:09:12 -08:00
Ayaz Hafiz
f72b8c2c30
Specialize polymorphic lists against non-polymorphic ones 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
37a8bbd87c
correct list pattern match checking to add extra anythings for patterns with rest 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
ee10af2c68
add currently broken test case for list .. as rest 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
3e39a32f0e
cleanup reversed stores to make logic clearer 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
2fb093d4c8
clippy 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
26afbbe8f6
remove redunant list.sublist check 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
223efe4a2d
fix using .. as name in list patterns 2023-11-20 21:09:11 -08:00
Richard Feldman
89be091f87
Order modules in docs sidebar based on exposes 2023-11-18 21:02:49 -05:00
Richard Feldman
9a12175a96
Drop redundant exposed Set 2023-11-18 21:02:33 -05:00
Folkert
616bfa6548
fix missing export 2023-11-18 23:21:43 +01:00
Folkert
f9fe17eef3
remove clippy warning that does not exist in 1.71 2023-11-18 23:13:34 +01:00
Folkert
c019ced31d
various 2023-11-18 23:05:55 +01:00
Folkert
d7c1be6a44
redundant closure call 2023-11-18 22:51:45 +01:00
Folkert
cf951ece59
use deref for clone 2023-11-18 22:48:11 +01:00
Folkert
4fb3e90451
redundant pointer casts 2023-11-18 22:48:00 +01:00
Folkert
49c2b1dbb7
redundant closure call 2023-11-18 22:46:40 +01:00
Folkert
88575b2140
fix 2 comment // in a row (clippy thinks you mean a doc comment; we don't 2023-11-18 22:39:34 +01:00
Folkert
b3177a157c
first automatic changes 2023-11-18 22:38:04 +01:00
Richard Feldman
a2fdd090bd
Merge pull request #5994 from jecaro/fix-op-handling-in-type-missmatch-errors
Show the right fct name in type error messages
2023-11-18 07:42:05 -05:00
Richard Feldman
cc41f3a2f0
Merge pull request #5954 from yukiomoto/fix-num-related-crash
Fix crash caused by number related type error in repl
2023-11-17 20:35:33 -05:00
jecaro
2ffe2fd2dd
fix golden tests accordingly 2023-11-17 10:51:27 +01:00
jecaro
c858031f74
Show the right fct name in type error messages 2023-11-16 16:44:55 +01:00
HajagosNorbert
9c21ac1388
rename to GetElementPointer, index -> indices 2023-11-13 15:48:05 +01:00
HajagosNorbert
90223022af
remove tag_id in favor of index 2023-11-13 15:48:05 +01:00
HajagosNorbert
347431d1df
index to slice of indicies 2023-11-13 15:48:05 +01:00
Richard Feldman
896c010645
Move test_reporting into load to break cyclic dep 2023-11-10 16:16:54 -05:00
Richard Feldman
6bd9fcd6e9
roc_solve shouldn't depend on itself 2023-11-10 16:04:06 -05:00