Commit graph

7477 commits

Author SHA1 Message Date
Sam Mohr
809fe23afd
Merge pull request #7533 from smores56/simple-can-solo
Move desugaring to new `roc_can_solo` crate
2025-01-19 19:06:10 -08:00
Luke Boswell
c8467b1fe0
Merge pull request #7454 from roc-lang/ayaz/error-on-invalid-generalized-types
Restrict usages of type variables in non-generalized contexts
2025-01-20 11:30:52 +11:00
Sam Mohr
4fa5fd6222
Remove vestigial uitest 2025-01-19 15:39:39 -08:00
Sam Mohr
3a6c622727
Fix failing tests, remove unnecessary NONE bitflag 2025-01-19 15:33:01 -08:00
Luke Boswell
5981e4354c
Merge pull request #7510 from joshuawarner32/pnc-fuzzing-fixes-4
Fix yet more fuzzing bugs
2025-01-20 09:26:52 +11:00
Luke Boswell
c9b38d839f
fmt 2025-01-20 08:25:53 +11:00
Sam Mohr
fce14d31b0
Move desugaring to new roc_can_solo crate 2025-01-19 07:16:43 -08:00
Joshua Warner
300412a4da
Fix pipe closure after expr 2025-01-18 19:40:52 -08:00
Anton-4
b2e3adf508
proc sort fix #7531 #7514 #7496 2025-01-18 23:15:18 +01:00
Sam Mohr
317f04354f
Fix WASM test 2025-01-17 21:24:23 -08:00
Sam Mohr
7914f0c7d8
Fix clippy issue 2025-01-17 20:01:54 -08:00
Sam Mohr
b8de09d048
Update tests 2025-01-17 19:10:20 -08:00
Sam Mohr
1a9668e83a
Add tests for desugaring and formatting 2025-01-17 18:55:58 -08:00
Sam Mohr
a292e070d4
Prefer and and or for boolean operators 2025-01-17 16:15:31 -08:00
Anton-4
3cc3118ffb
update snapshot 2025-01-17 17:46:46 +01:00
Joshua Warner
d42af0b763
Expand handling of guard_needs_parens 2025-01-16 21:32:37 -08:00
Joshua Warner
7f1b3449a6 Correct handling of binop with SpaceAfter in a Body def 2025-01-16 21:32:06 -08:00
Joshua Warner
51f2cdccf7
Relax argument indentation requirements in closures 2025-01-16 21:27:40 -08:00
Joshua Warner
ede015517a Unify Alias and Annotation formatting 2025-01-16 21:21:02 -08:00
Joshua Warner
6127bd2d26 Move unit assignment handling to lifting phase 2025-01-16 21:19:21 -08:00
Joshua Warner
ff230c4261 Make nodes more strongly normalizing to fix confusion with outdentability 2025-01-16 21:18:21 -08:00
Joshua Warner
a945fd9c5c
Force indent on where clause 2025-01-16 21:17:56 -08:00
Joshua Warner
f08a0012ea
Fix negative float and non-base-10 literal patterns 2025-01-16 21:16:53 -08:00
Joshua Warner
962534e3d1
Fix a couple issues with multiline string literal formatting 2025-01-16 21:16:34 -08:00
Joshua Warner
316ec39af7
Also handle tuple accessors for multiline string checking 2025-01-16 21:16:10 -08:00
Anthony Bullard
d3c400b5e0
Merge pull request #7520 from gamebox/format-new-lambdas
Format all lambdas to new syntax
2025-01-16 16:55:10 -06:00
Sam Mohr
5859415e73
Prefix hidden vars with # 2025-01-16 10:49:51 -08:00
Anthony Bullard
1b43ffa579
Format all lambdas to new syntax 2025-01-16 08:03:44 -06:00
Sam Mohr
474fd15dd4
Fix formatting 2025-01-16 03:21:34 -08:00
Sam Mohr
b73e4387ae
Implement ? binop operator 2025-01-16 02:44:32 -08:00
Ian McLerran
14d99c6907
update solve_expr and test_gen tests with map_ok 2025-01-15 21:30:19 -06:00
Ian McLerran
297dd0233e
update internal references to Result.map 2025-01-15 19:55:27 -06:00
Ian McLerran
326558337c
update mono tests 2025-01-15 19:55:26 -06:00
Ian McLerran
579beab901
Result.map to Result.map_ok 2025-01-15 19:55:26 -06:00
Anthony Bullard
8e1e1520e3
New Lambda Syntax with |...|
This adds parser support for the new lambda syntax.  It does not remove
the existing syntax, nor will the new syntax be retained in formatting.
That will be done in a separate PR to keep the two respective PRs
relatively small and easy to review.
2025-01-15 05:58:16 -06:00
Anthony Bullard
4e66910ef8
Add a few tests 2025-01-15 05:56:39 -06:00
Joshua Warner
d43ad92789
Introduce proper type for TypeVar's, mark anything not a lowercase ident as malformed 2025-01-14 19:30:33 -08:00
Joshua Warner
a9c25563b2
Merge pull request #7504 from joshuawarner32/can-fuzzing-fixes
Fix a round of canonicalization panics found in fuzzing
2025-01-13 21:55:57 -08:00
Anton-4
070de58416
Merge pull request #7507 from imclerran/fix-gramatical-error
Fix grammatical error in monomorphization borrower error message
2025-01-13 20:24:52 +01:00
Anton-4
af352e3d7b
Merge pull request #7503 from shua/shr
fix Num.shift_right_by to not mutating src register
2025-01-13 19:44:37 +01:00
Ian McLerran
5774095300
Fix grammatical error in borrower error message 2025-01-13 12:05:41 -06:00
Joshua Warner
5ebd6e0884
Only conditionally fuzz canonicalize 2025-01-11 20:24:35 -08:00
Joshua Warner
853dd5725b
Also handle large tuple indices in a.123 form 2025-01-11 20:24:35 -08:00
Joshua Warner
61bc0b3464
Resolve TODO around handling non-plain strings 2025-01-11 20:24:34 -08:00
Joshua Warner
e0ef01fa82
Fix two canonicalization crashes: try() and overflowed tuple indexes 2025-01-11 20:24:34 -08:00
Joshua Warner
7d464a2989
add failing test for ignored fields canonicalization 2025-01-11 20:24:33 -08:00
Joshua Warner
408379f8d3
Canonicalize the pattern in annotations 2025-01-11 20:24:30 -08:00
Sam Mohr
1a8f56e103
Merge pull request #7502 from smores56/move-specialize-types
Move specialize_types to new build folder
2025-01-11 16:59:54 -08:00
shua
c195cff8e3
fix Num.shift_right_by to not mutate src register
The intent of this change is to fix a bug calling `Num.shift_right_by(a, b)`
mutates `a`. This was happening in the dev backend only, and the cause was
some generated assembly which writes to register a is stored in.
2025-01-12 00:37:10 +01:00
Sam Mohr
8635848b12
Move specialize_types to new build folder 2025-01-11 15:07:49 -08:00