On vacation
4ee3431428
Merge branch 'main' into rust-1-72-upgrade
2024-01-26 13:39:34 +01:00
Richard Feldman
2970fc4384
Merge remote-tracking branch 'origin/main' into str-unicode
2024-01-21 12:30:16 -05:00
Folkert
f1ffc36efe
add List.clone
2024-01-20 20:29:07 +01:00
Richard Feldman
b48fa0698a
Remove scalars and graphemes from Str
2024-01-17 21:30:34 -05:00
Brendan Hansknecht
260b94b36d
Merge branch 'main' into rust-1-72-upgrade
2024-01-17 14:36:16 -08:00
Richard Feldman
af8e9c7292
Parse deprecated interpolation syntax differently
2024-01-06 21:49:00 -05:00
Richard Feldman
163bde0c41
Update tests to use $(...) interpolation
2024-01-06 15:06:30 -05:00
Anton-4
c85a25e320
clippy fixes
2024-01-01 19:19:44 +01:00
Anton-4
1126f85b5a
fix clippy unnecessary hashes
2024-01-01 16:38:36 +01:00
Anton-4
cd632fe549
Merge branch 'main' of github.com:roc-lang/roc into clippy-1.74
2023-12-25 17:05:37 +01:00
Brendan Hansknecht
e5a0af5699
make DbgFormatter an unexposed implementation detail
2023-12-03 12:41:04 -08:00
Brendan Hansknecht
b04699acdf
change debug to call Inspect.inspect
instead of inlining it
...
This is to workaround #6167 and can be reverted once it is fixed
2023-12-03 09:51:55 -08:00
Brendan Hansknecht
e8d2deca90
fix off by one in roc_dbg
2023-12-03 08:22:04 -08:00
Brendan Hansknecht
5e8974177c
avoid bloating parse expr size
2023-12-02 21:18:32 -08:00
Brendan Hansknecht
3966d63e2f
add src and location to dbg
2023-12-02 21:18:31 -08:00
Brendan Hansknecht
4072a2a745
attempt to switch to inlined Inspect.inspect
in autoderive
2023-12-02 21:18:31 -08:00
Brendan Hansknecht
4c2eb8b378
Change the generated inspect for Opaque types to print (@Opaque payload)
2023-12-02 21:18:30 -08:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74
2023-12-02 20:09:06 -06:00
Brendan Hansknecht
1f14aa84a2
misc cleanup suggestions
2023-11-29 21:05:56 -08:00
Brendan Hansknecht
b7f72eff86
add basic Dbg desugaring and LowLevelDbg
2023-11-29 21:05:48 -08:00
Ayaz Hafiz
5c805ce80f
Get first inspect for non-Inspect-implementing opaques specialized
2023-11-28 16:40:39 -08:00
Ayaz Hafiz
c87e3e7413
TODO
2023-11-28 16:40:39 -08:00
Richard Feldman
d0841fb018
Add derive key for Inspect
2023-11-28 16:40:39 -08:00
Elias Mulhall
0ccc71389a
move pattern desugar tests to test_mono
2023-11-26 20:26:43 -05:00
Elias Mulhall
d924125e6d
remove unnecessary comment
2023-11-26 20:26:42 -05:00
Elias Mulhall
439ce1143c
desugar patterns during canonicalization
...
Traverse pattern ASTs and desugar two cases
- Desugar optional record field default value expr. This expr might
contain nodes that need to be desugared, such as binary operations.
Failing to desugar this expr can cause an internal panic later in
canonicalization.
- Discard SpaceBefore and SpaceAfter nodes so that patterns can be
destructured over multiple lines. Keeping these nodes can cause an
internal panic later in canonicalization. Fixes [1].
[1]: https://github.com/roc-lang/roc/issues/5653 .
2023-11-26 20:26:42 -05:00
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
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
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
Ayaz Hafiz
886a367026
Go-to-definition basic support
2023-10-25 17:14:50 -05:00
Ayaz Hafiz
e954e074fb
Refactor for less laziness (right now)
2023-10-25 17:14:50 -05:00
Ayaz Hafiz
0db1cd9c28
Add hover
2023-10-25 17:14:33 -05:00
Folkert
6ab54c02e2
drop into_iter in some places
2023-10-07 19:11:36 +02:00
Brendan Hansknecht
108d9a54e3
Switch Num.tan to a zig builtin
...
It should be able to share some work between sine and cosine to run faster.
2023-09-16 21:27:51 -07:00
Richard Feldman
2da41be29f
Merge remote-tracking branch 'origin/main' into abilities-syntax
2023-08-10 20:36:01 -04:00
Folkert
5d3c7a9363
remove HostExposedAlias
2023-08-09 14:06:07 +02:00
Folkert
44d03eebfa
switch over to alloca expr
2023-07-30 18:48:35 +02:00
Folkert
cdd2aab217
add alloca as an expression
2023-07-30 18:46:00 +02:00
Richard Feldman
9c9a7884f2
Clippy
2023-07-29 18:23:16 -04:00
Richard Feldman
42fb593471
Desugar inside string interpolation
2023-07-29 18:11:41 -04:00
Richard Feldman
9e0e756d3b
Allow more exprs inside string interpolation
2023-07-29 17:30:48 -04:00
Folkert
557c3987e0
make it work
2023-07-24 21:24:33 +02:00
Folkert
43adf0635e
freshen annotations
2023-07-24 21:24:33 +02:00
Ayaz Hafiz
6e5a308557
Content variant ErasedLambda
2023-07-12 13:57:17 -05:00
Ayaz Hafiz
33b1b8236a
Break up SolveEnv
2023-07-12 13:53:51 -05:00
Folkert
ef39bad7c6
auto clippy fixes
2023-07-10 18:27:08 +02:00
Kiryl Dziamura
3ccb6114b2
Unwrap expr in loop
2023-07-04 10:16:21 +02:00
Kiryl Dziamura
29592ddb9b
Drop parens during body canonicalization
2023-07-04 10:16:21 +02:00
Kiryl Dziamura
6031c0cc9f
Fix desugar step for pizza operator
2023-07-04 10:16:20 +02:00