Agus Zubiaga
2ca829aaa8
Handle RangedNumber
2024-12-11 18:09:44 -03:00
Agus Zubiaga
18d817246e
Specialize lookups and bool types
2024-12-11 16:53:58 -03:00
Agus Zubiaga
9868c5cfac
Do not return Option
from monomorphize_var
2024-12-11 15:26:40 -03:00
Agus Zubiaga
4b28136143
Do not discard empty types in specialize_types
...
Currently, `to_mono_expr` returns `Nothing` when it encounters
an empty record and it discards fields that are empty.
For simplicity, we decided to do this at a later stage, so this changes
it to return a new `MonoExpr::Unit` type instead.
2024-12-11 12:13:11 -03:00
Joshua Warner
a5bcf55d08
Implement initial version of fuzzing in CI ( #7316 )
...
* Implement initial version of fuzzing
* try nix config
* try rustup
* rustup run
* Fix syntax
* wip
* specific nightly
* wip
* specific nightly with+
* install
* locked
2024-12-11 12:57:24 +01:00
Joshua Warner
04612fb2cb
Fix as pattern formatting inside apply
2024-12-10 18:55:40 -08:00
Joshua Warner
6b636d9539
Set up module ids properly
2024-12-09 21:24:10 -08:00
Joshua Warner
cbd6d50584
Give an error instead of panicking on an empty tuple type
2024-12-09 21:24:09 -08:00
Brendan Hansknecht
6e9f6843c4
Merge pull request #7319 from roc-lang/dec-mul
...
fix dec multiplication with overflow and saturation
2024-12-08 17:08:52 -08:00
Luke Boswell
6675734c16
Merge pull request #7314 from shua/wrapped
...
impl add/sub/mul wrapped for u128/i128
2024-12-09 11:19:58 +11:00
Brendan Hansknecht
562032e2d8
fix dec multiplication with overflow and saturation
...
fixes #7276
2024-12-08 11:14:38 -08:00
Ayaz
793a95264d
Merge branch 'main' into wrapped
2024-12-08 13:54:43 -05:00
Sam Mohr
01f4d4f3da
Merge branch 'main' into cleanup_unused
2024-12-08 10:14:47 -08:00
shua
8a35610c5f
add wasm impl
2024-12-08 13:30:24 +01:00
Luke Boswell
a4fd57e54f
Merge pull request #7310 from joshuawarner32/test_syntax_can
...
Extend test_syntax to check that canonicalization doesn't panic on the input
2024-12-08 21:26:42 +11:00
Luke Boswell
f0cc363b53
Merge pull request #7317 from roc-lang/ayaz/fix-pass-by-reference
...
Fix pass by reference for compare fn
2024-12-08 21:25:52 +11:00
Joshua Warner
519bf534b2
Remove commented import
2024-12-07 09:11:52 -08:00
shua
def796f146
PR: refac tests, add all int cases for *wrap tests
2024-12-07 16:27:25 +01:00
Luke Boswell
f6f2830bac
clippy
2024-12-07 20:37:57 +11:00
Luke Boswell
25ce0875ad
Merge pull request #7312 from MatthewJohnHeath/7287-Make-testing_roc_alloc-align-the-allocation
...
7287 make testing roc alloc align the allocation
2024-12-07 19:49:02 +11:00
Ayaz Hafiz
6ddb65d529
Fix pass by reference for compare fn
...
https://roc.zulipchat.com/#narrow/channel/463736-bugs/topic/LLVM.20IR.20output.20in.20compiler.20crash.20during.20AOC !
2024-12-07 02:02:00 -05:00
Joshua Warner
b4fa7294c7
Extend test_syntax to check that canonicalization doesn't panic on the input
...
Importantly, this would have caught the issue discovered in #7279 , prior to that landing on main.
2024-12-06 17:13:10 -08:00
Sam Mohr
4abe199747
Fix question statements
2024-12-06 11:01:29 -08:00
Mattthew Heath
3aeab753b4
tidying
2024-12-06 18:44:10 +00:00
Mattthew Heath
8c2cdeb332
aligns at 16 finally
2024-12-06 18:35:49 +00:00
Mattthew Heath
addd826511
Revert "aligns as 8"
...
This reverts commit 82a70c79b8
.
2024-12-06 17:47:08 +00:00
Mattthew Heath
82a70c79b8
aligns as 8
2024-12-06 17:33:12 +00:00
Mattthew Heath
b33f1b0981
aligns as usize
2024-12-06 17:16:24 +00:00
Joshua Warner
e2d839c050
Remove commented code
2024-12-05 18:56:18 -08:00
Joshua Warner
82bf4b19d8
Fix up LowLevelTry after rebase
2024-12-05 18:54:26 -08:00
Joshua Warner
0855ffd9fb
Feedback: Add comment about not updating fuzz's Cargo.toml
2024-12-05 18:54:25 -08:00
Joshua Warner
6ac6a7c19a
Feedback: dry out term, make fmt_spaces_with_newline_mode more readable, explicitly implement all the variants in ann_lift_spaces
2024-12-05 18:54:25 -08:00
Joshua Warner
8642f8500e
Switch to conservatively checking if the annotation/alias ends in a space before merging
2024-12-05 18:54:24 -08:00
Joshua Warner
e22e37a9c1
Remove accideental dbg!()
2024-12-05 18:54:23 -08:00
Joshua Warner
f833ac9a6b
Fix formatting of Apply nodes with zero args, which the repl generates
2024-12-05 18:54:23 -08:00
Joshua Warner
9a9b96dc69
Fix clippy
2024-12-05 18:54:22 -08:00
Joshua Warner
e620e1c462
Fix warnings
2024-12-05 18:54:22 -08:00
Joshua Warner
45424e27fb
Fixup string dollar handling
2024-12-05 18:54:21 -08:00
Joshua Warner
dfcb7a0c3b
Ensure formatted multiline patterns can be parsed
2024-12-05 18:54:21 -08:00
Joshua Warner
78cda703d9
Fixup negative allowance in calls
2024-12-05 18:54:20 -08:00
Joshua Warner
1be2075e7f
Make sure ext's can't slurp surrounding apply args
2024-12-05 18:54:19 -08:00
Joshua Warner
fc74b67d86
Flesh out expr_lift_spaces, in particular handling DbgStmt properly
2024-12-05 18:54:19 -08:00
Joshua Warner
5c387857ff
Indented seq parsing for imports
2024-12-05 18:54:18 -08:00
Joshua Warner
2163b28390
Fix formatting of newlines in parens in a function type
2024-12-05 18:54:18 -08:00
Joshua Warner
cae47cf2a6
Fix expr_lift_spaces of Closure
2024-12-05 18:54:17 -08:00
Joshua Warner
19f8cc532a
Disallow conditionals after neg/not
2024-12-05 18:54:17 -08:00
Joshua Warner
7eb9909ac5
Make parsing of conditionals consistent between stmts/exprs
2024-12-05 18:54:16 -08:00
Joshua Warner
e47d7924d3
Fix parsing crash with dollar escapes
2024-12-05 18:54:15 -08:00
Joshua Warner
89a64fed74
Don't do empty record destructure elision when the body is itself Defs
2024-12-05 18:54:15 -08:00
Joshua Warner
cabe67f88d
Only allow indented else if there's a newline after the else
2024-12-05 18:54:14 -08:00