Commit graph

10297 commits

Author SHA1 Message Date
Sam Mohr
012387b1ff
Fix tests broken by recent internal syntax changes 2024-10-25 04:23:48 -07:00
Sam Mohr
8a0cc10c93
Add test_gen tests for early returns 2024-10-24 23:41:53 -07:00
Sam Mohr
ca762127e5
Fix formatting and clippy errors 2024-10-24 23:11:20 -07:00
Sam Mohr
aae173d4ac
Add accidentally removed Bool name in reporting 2024-10-24 23:05:34 -07:00
Sam Mohr
294f0c0d1f
Merge branch 'main' into return-keyword 2024-10-24 23:01:10 -07:00
Sam Mohr
e9c096088a
Remove unnecessary vec size reservation 2024-10-24 23:00:37 -07:00
Sam Mohr
01369dc6d8
Add mono tests to validate refcounts with early return 2024-10-24 22:56:03 -07:00
Luke Boswell
06996d88f2
Merge pull request #7178 from JRI98/fix_6240
Fix #6240
2024-10-24 13:29:47 +11:00
Luke Boswell
157c0d2aad
clippy happy in --release too 2024-10-24 11:36:20 +11:00
Luke Boswell
d0ee040421
make clippy happy 2024-10-24 11:31:15 +11:00
Luke Boswell
926014518f
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-24 10:21:08 +11:00
Anton-4
9b7c6c9fe7
cleanup warnings 2024-10-23 19:36:03 +02:00
Anton-4
78438dfa87
Merge branch 'rebuild-platform' of github.com:roc-lang/roc into rebuild-platform 2024-10-23 19:31:34 +02:00
Anton-4
63b8e50d96
refactoring PrebuiltHost, fixed glue tests 2024-10-23 19:30:39 +02:00
JRI98
edd0bb553d
Remove unused EmptyTuple variant from FlatType enum 2024-10-22 16:29:53 +01:00
JRI98
511308d4d3
Fix #6240 2024-10-22 12:04:48 +01:00
Anton-4
1b6d83db6c
typo
Co-authored-by: Stuart Hinson <stuart.hinson@gmail.com>
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-10-22 11:11:55 +02:00
Richard Feldman
21dd2ad85d
Update parsing snapshot tests 2024-10-21 23:19:25 -04:00
Richard Feldman
8997c80573
Remove deprecated roc_collections::soa things 2024-10-21 23:17:20 -04:00
Richard Feldman
d796b3ec74
Update insta tests 2024-10-21 23:09:55 -04:00
Richard Feldman
91360bac17
Don't print type names in Debug for Slice & Index 2024-10-21 22:36:08 -04:00
Richard Feldman
458899b25b
use #[deprecated] 2024-10-21 22:34:29 -04:00
Richard Feldman
9590db6bd0
use #[deprecated]
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2024-10-21 22:33:37 -04:00
Richard Feldman
3dbddb3846
use #[deprecated]
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2024-10-21 22:31:20 -04:00
Richard Feldman
8bb7b5460f
Don't qualify PhantomData 2024-10-21 22:30:43 -04:00
Richard Feldman
c9c7156db5
Fix insta tests 2024-10-21 22:10:44 -04:00
Richard Feldman
f03505a485
Add no_std to soa 2024-10-21 22:10:44 -04:00
Richard Feldman
ab17bfc260
Drop unnecessary comment 2024-10-21 22:10:44 -04:00
Richard Feldman
728a475d1b
Delete obsolete doc comment 2024-10-21 22:10:44 -04:00
Richard Feldman
08b32927f1
Implement @smores56's feedback from #7156 2024-10-21 22:10:44 -04:00
Richard Feldman
62b4fe6943
clippy 2024-10-21 22:10:43 -04:00
Richard Feldman
e589923ae8
Make collections::soa use the soa crate 2024-10-21 22:10:43 -04:00
Richard Feldman
44d00e1f13
Updates for making soa no_std 2024-10-21 22:10:43 -04:00
Richard Feldman
178bc469e6
Put back a bunch of the push_new etc. calls 2024-10-21 22:10:43 -04:00
Richard Feldman
49d1786f6c
Remove more push_new and extend_new usages 2024-10-21 22:10:43 -04:00
Richard Feldman
b2ea0b842c
Revert "Do some checked SoA stuff"
This reverts commit c79d7745f6eb345fd50a7cb4a2a7dd6fb6f8f1fc.
2024-10-21 22:10:43 -04:00
Richard Feldman
a8d3280b02
Do some checked SoA stuff 2024-10-21 22:10:42 -04:00
Sam Mohr
ff83fd6e3e
Merge pull request #7172 from jwoudenberg/expose-original-script-to-host
Set argv[0] to .roc file passed to 'roc run'
2024-10-21 13:43:25 -07:00
Jasper Woudenberg
ad555297cf
Set argv[0] to .roc file passed to 'roc run'
When we run `roc run <file>` or `roc <file>` then Roc will compile a
binary and run it. Before this commit we would set the path to the
compiled binary as argv[0]. This commit changes the behavior to make
argv[0] in the binary correspond to the roc file being ran.

This benefits the use of roc scripts that make use of a shebang:

    #!/usr/bin/env roc

With this change such scripts will be able to read the path to
themselves out of ARGV. This trick is commonly used for instance by bash
scripts in order to access files relative to the script itself.
2024-10-21 21:54:46 +02:00
Anton-4
0e28199b49
fixed valgrind crate 2024-10-21 17:43:22 +02:00
Sam Mohr
7518a2c5ab
Address PR comments, add syntax tests 2024-10-21 03:06:43 -07:00
Richard Feldman
67bca80921
Add test_compile crate 2024-10-20 18:52:22 -04:00
Jasper Woudenberg
1ab8fd55a9
Add extra documentation around glue 2024-10-20 20:31:11 +02:00
Sam Mohr
b3e60f9d3a
Implement return keyword 2024-10-20 08:58:59 -07:00
Richard Feldman
98535bfbce
wip 2024-10-20 11:00:58 -04:00
Anton-4
c64160ac73
valgrind refactoring progress 2024-10-19 19:50:06 +02:00
Anton-4
5953155f70
done with cli_tests 2024-10-19 19:25:50 +02:00
Anton-4
37f1c98bf7
finished refactoring benchmarks 2024-10-19 17:23:22 +02:00
Anton-4
9f4c8b18d8
refactoring progress 2024-10-18 20:09:10 +02:00
Anton-4
54ae11be25
finished refactoring simple zig platform tests 2024-10-18 17:45:28 +02:00