Commit Graph

127 Commits

Author SHA1 Message Date
Anton-4
c1d0c24194
fix expected type
Rust's u128 and Roc's U128 have different alignment. They can not be used interchangebly, that leads to segmentation faults. See also https://roc.zulipchat.com/#narrow/stream/395097-compiler-development/topic/str_to_u128.20segfault/near/434410692
2024-04-20 19:57:47 +02:00
Anton-4
8502a37b3c
fmt 2024-04-15 16:51:07 +02:00
Anton-4
e4b814ce1c
clippy 2024-04-15 16:50:44 +02:00
Folkert
164319a07d
pi is not 3 2024-01-30 15:51:49 -08:00
Brendan Hansknecht
260b94b36d
Merge branch 'main' into rust-1-72-upgrade 2024-01-17 14:36:16 -08:00
Brian Teague
60c639b60e
Consolidate gitignore
Keep certain files with no file extension

Keep specific files with no file extension

Delete all gitignore files
2024-01-10 22:16:04 -05:00
Anton-4
2ac6243e72
partial clippy fixes 2023-12-27 17:46:56 +01:00
Anton-4
a4fd42b8de
rustfmt 2023-12-25 17:19:30 +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
Folkert
f570444901
always slice a big string as a slice (not as a small string) 2023-12-12 10:49:21 +01:00
Folkert
37ef3549c8
rename field name 2023-12-12 10:45:53 +01:00
Folkert
f742d50379
changes after review 2023-12-12 10:45:53 +01:00
Folkert
9865096c24
expose list/string slices to rust users 2023-12-12 10:45:53 +01:00
Brendan Hansknecht
787d7f85ac
switch dbg arg ordering to make it backwards compatible 2023-12-02 21:18:32 -08:00
Brendan Hansknecht
13d2238536
update roc_dbg in platforms 2023-12-02 21:18:31 -08:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74 2023-12-02 20:09:06 -06:00
Brendan Hansknecht
f5fb01fd53
Get tests passing
Add roc_dbg to some platforms.
Also start updating some roc_panic impls.
2023-11-29 21:05:49 -08:00
Folkert
6d55acc5cf
cleanups in roc_std 2023-11-18 22:43:11 +01:00
Brendan Hansknecht
d01fc9156c
add missing traits to RocResult 2023-11-14 18:16:04 -08:00
Folkert
f717cb75a9
clippy 2023-10-15 21:06:23 +02:00
Folkert
72d5b64c6f
clippy 2023-10-15 20:26:02 +02:00
Folkert
d4e77856fe
roc_std: fixes found by running miri 2023-10-15 20:12:06 +02:00
Folkert
be81651299
fix valgrind issue in roc_std 2023-10-09 15:24:44 +02:00
Sekerez
a5b65cad03 Add whole number dec test 2023-09-17 11:25:56 -04:00
Isak
c5f93e3c54 Simplify Dec to_str implementation 2023-09-16 18:07:50 -04:00
Isak
426582906c Remove dbg statement 2023-09-16 17:52:32 -04:00
Isak
ec68d084e9 fix failing test 2023-09-16 17:52:04 -04:00
Isak
b2a7f62964 isolate issue 2023-09-16 17:46:08 -04:00
Folkert
edefbe5b6b
fix wrong alignment used to (re)allocate a list 2023-09-15 00:46:26 +02:00
Folkert
5d6523f994
missing import 2023-09-14 17:52:03 +02:00
Folkert
15a96ef4e8
clippy 2023-09-14 17:43:10 +02:00
Folkert
35cc59f70e
fix roc_std looking for refcount in the wrong place 2023-09-14 17:41:04 +02:00
Folkert
310cc2ae0f
fix alignment 16 bug in roc_list
the rust RocList did not pad the reference count when the alignment is bigger than that of the reference count
2023-09-14 17:30:37 +02:00
Folkert
2ddf0ce180
disable debugging flag 2023-09-14 14:43:29 +02:00
Folkert
5e4f43e1d8
checkpoint 2023-09-14 14:43:24 +02:00
Folkert
5ca3d3bcf1
make llvm tests work again 2023-09-13 20:24:15 +02:00
Folkert
59af059912
make dec formatting consistent with f64 2023-09-13 20:24:15 +02:00
Anton-4
f2137c90ab
upgrade to rust 1.70.0 2023-07-25 17:44:46 +02:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Richard Feldman
416d8e21b0
Have RustGlue bundle roc_std 2023-06-26 09:48:27 -04:00
Brendan Hansknecht
75a035e12d
remove all definitions of roc_memcpy 2023-06-02 15:23:05 -07:00
Ayaz Hafiz
c497641e63
Support underscores in Dec numbers
Closes #5303
2023-04-19 14:35:20 -05:00
Folkert
f63460eb69
remove some UB 2023-04-06 16:10:31 +02:00
Folkert
84d61a0a64
implement enough of non-nullable unwrapped 2023-04-05 17:23:51 +02:00
Folkert
3151a08edb
full implementation for nullable unwrapped 2023-04-05 15:02:53 +02:00
Ayaz Hafiz
782a9839ac
Only mark roc_std no_std if std feature is not present
Otherwise, you will get compile errors with the std feature.
2023-03-25 17:09:38 -05:00
Anton-4
f1b1aa6a7b
Merge branch 'main' of github.com:roc-lang/roc into glue-getters-rtfeldman 2023-03-17 11:34:29 +01:00
Brendan Hansknecht
18e6dbd163
fix roc_std to support seamless str slices 2023-03-15 13:23:34 -07:00
Folkert
fdf1489df6
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-03-14 01:01:26 +01:00
Brendan Hansknecht
dfb748fb03
misc cleanup + change refcount pointer to avoid branching 2023-03-13 14:08:24 -07:00