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
Luke Boswell
2331aa1d77
Merge pull request #7500 from joshuawarner32/pnc-fuzzing-fixes-2
...
More fuzzing fixes, some pnc some not
2025-01-12 08:45:35 +11:00
Joshua Warner
9ffc671659
Stop using dbg pnc in test
2025-01-11 12:50:14 -08:00
Joshua Warner
875e355b68
handle record access when checking for block string literals
2025-01-11 11:05:54 -08:00
Joshua Warner
6d2b635dbc
Don't turn pnc apply dbg into DbgStmt
2025-01-11 11:05:35 -08:00
Joshua Warner
6d324590da
Fix pipe indents in when
2025-01-11 11:05:35 -08:00
Joshua Warner
1cc97fcfa7
Fix else spacing
2025-01-11 11:05:34 -08:00
Joshua Warner
6b08f42d02
Fix more cases of when in guard
2025-01-11 11:05:34 -08:00
Joshua Warner
903b792fd3
Fix when in when guard
2025-01-11 11:05:33 -08:00
Joshua Warner
586dc3486f
Fix formatting of negative numbers in pnc apply patterns
2025-01-11 11:05:33 -08:00
Joshua Warner
2e4e4bb957
Fix placement of comma after implements in pnc apply patterns
2025-01-11 11:05:33 -08:00
Joshua Warner
2bbcbbd5c1
clippy fixes
2025-01-11 11:05:29 -08:00
Joshua Warner
0471993428
Further relax indentation of implements ability chains
2025-01-10 21:10:58 -08:00
Joshua Warner
7a1b3b8257
Allow funky indentation of implements clause, since we know it must be coming anyway
2025-01-10 21:10:57 -08:00
Joshua Warner
2bd03ef16b
Fix pnc apply in unary negate
2025-01-10 21:10:56 -08:00
Joshua Warner
05033ac40b
allow arrow to be an expr terminator in when guards
2025-01-10 21:10:56 -08:00
Joshua Warner
13a70c060d
Preserve info about whether a given dbg stmt was pnc or not, at least for now
2025-01-10 21:10:55 -08:00
Brendan Hansknecht
ec8aeaa15a
zig fmt
2025-01-10 20:39:38 -08:00
Brendan Hansknecht
7643f89781
Merge branch 'main' into simplify-refcount
...
Signed-off-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
2025-01-10 20:34:52 -08:00
Ayaz Hafiz
ec23cc56ea
Fix more
2025-01-10 21:31:43 -05:00
Sam Mohr
1bb9f7f530
Merge pull request #7498 from HajagosNorbert/dec-to-str
...
remove unused var causing errors in debug tests.
2025-01-10 18:09:21 -08:00
Ayaz Hafiz
89700b491c
Fix some tests
2025-01-10 20:49:53 -05:00
Sam Mohr
528d1d2b69
Merge pull request #7497 from smores56/new-interpolation-syntax
...
Move to new interpolation syntax
2025-01-10 15:25:12 -08:00
Jakub Konka
5a164ccede
linker/macho: remove printlns used for debugging
2025-01-10 22:13:34 +01:00
Sam Mohr
0984732854
Fix out-of-date syntax snapshots
2025-01-10 13:08:13 -08:00
Jakub Konka
66fd18fc0a
linker/macho: insert Roc-specific segment load commands
2025-01-10 21:59:50 +01:00
Norbert Hajagos
9689656845
remove unused var causing errors in debug tests.
2025-01-10 21:34:11 +01:00
Sam Mohr
b0a5b1c3d5
Fix broken RustGlue.roc interpolation
2025-01-10 12:30:18 -08:00
Jakub Konka
e4a97216a6
linker/macho: append expected Roc segment commands
2025-01-10 21:14:58 +01:00
Jakub Konka
afe6b51dc1
linker/macho: rename macho_cmd_loc to end_of_load_commands
2025-01-10 21:14:57 +01:00
Jakub Konka
d15e6f1d89
linker/macho: save offsets of linkedit load commands that we will need updating
2025-01-10 21:14:56 +01:00
Jakub Konka
5b2310d313
linker/macho: remove added_byte_count - we cannot shift anything beyond LINKEDIT anyhow
2025-01-10 21:14:55 +01:00
Jakub Konka
a8f80f3240
linker/macho: error out if not enough headerpad available
2025-01-10 21:14:54 +01:00
Jakub Konka
93a4e9924d
linker/macho: record start of first section following load commands
2025-01-10 21:14:40 +01:00
Luke Boswell
5d0b700730
Merge pull request #7493 from joshuawarner32/pnc-fuzzing-fixes
...
Fix some bugs in PNC formatting found via fuzzing
2025-01-11 06:58:23 +11:00
Ayaz
ee3c71dfe6
Merge branch 'main' into ayaz/error-on-invalid-generalized-types
...
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2025-01-10 14:36:48 -05:00
Sam Mohr
eb1b5ffa26
Move to new interpolation syntax
2025-01-10 10:29:20 -08:00
Joshua Warner
9f395e033d
Fix pnc apply pattern lift spaces
2025-01-09 21:06:08 -08:00
Joshua Warner
7acf9c5e5d
Fix zero-length dbg arg list
2025-01-09 20:25:20 -08:00
Joshua Warner
8deca25c5e
Make sure to add parens if a PncApply dbg stmt becomes a space-separated Apply
2025-01-09 19:22:09 -08:00
Ian McLerran
541fb6056c
update mono tests
2025-01-09 13:53:01 -06:00
Ian McLerran
ab3f39a7c9
Add docs for List.walk_try!
2025-01-09 13:49:33 -06:00
Ian McLerran
56f53c56d2
add walk_try! to symbols.rs
2025-01-09 12:16:13 -06:00
Ian McLerran
ea2a007834
Add List.walk_try!
2025-01-09 11:45:01 -06:00
Ian McLerran
ffa1dd5703
unified formatting for walk
2025-01-09 09:40:59 -06:00
Joshua Warner
0438c17503
Fix pnc args multiine in the presence of final comments
2025-01-08 21:25:39 -08:00
Luke Boswell
d9d2ce83d6
Merge remote-tracking branch 'remote/main' into annotate-type-signatures
2025-01-09 14:21:37 +11:00