Commit graph

6092 commits

Author SHA1 Message Date
Fábio Beirão
3ba96709fa
Add nice error message for Problem::InvalidUrl(UrlProblem::MissingHttps)
Contributes to #5487
2023-06-02 12:11:13 +02:00
Fábio Beirão
b1321659c5
Add nice error message for Problem::InvalidUrl(UrlProblem::MissingHash)
Contributes to #5487
2023-06-02 12:05:22 +02:00
Fábio Beirão
8cd09b5210
Add nice error message for Problem::InvalidUrl(UrlProblem::InvalidFragment)
Contributes to #5487
2023-06-02 11:55:18 +02:00
Fábio Beirão
bab52edba4
Add nice error message for Problem::InvalidUrl(UrlProblem::MissingTarExt)
Contributes to #5487
2023-06-02 11:40:39 +02:00
Fábio Beirão
389a714f0e
Add nice error message for Problem::InvalidUrl(UrlProblem::InvalidExtensionSuffix)
Contributes to #5487
2023-06-02 11:40:38 +02:00
Fábio Beirão
449c58cc23
Add nice error message for Problem::HttpErr
Contributes to #5487
2023-06-02 11:40:37 +02:00
Fábio Beirão
9a75542a11
Add nice error message for Problem::FsExtraErr
Contributes to #5487
2023-06-02 11:40:36 +02:00
Fábio Beirão
1080269aaa
Add nice error message for Problem::IoErr
Contributes to #5487
2023-06-02 11:40:36 +02:00
Fábio Beirão
d4d26a545e
Add nice error message for Problem::InvalidContentHash
Contributes to #5487
2023-06-02 11:40:35 +02:00
Fábio Beirão
5306570a86
Remove the url_problem_intro_x functions
This approach did not scale to other error messages
Contributes to #5487
2023-06-02 11:40:34 +02:00
Fábio Beirão
281b044ed8
Add nice error message for Problem::MultipleEncodings
Contributes to #5487
2023-06-02 11:40:33 +02:00
Fábio Beirão
c5269e24b8
Add friendly error message for Problem::UnsupportedEncoding
Contributes to #5487
2023-06-02 11:40:33 +02:00
Fábio Beirão
273b7c07c1
Initial plumbing to be able to show https errors
Related to #5487
2023-06-02 11:40:32 +02:00
Brendan Hansknecht
58067f936a
Merge pull request #5466 from KilianVounckx/list-update
Add List update function
2023-06-02 09:03:22 +00:00
Kilian Vounckx
7f5e6299ab
Generate tests 2023-06-01 18:40:31 +02:00
Folkert de Vries
e59404b6fa
Merge pull request #5495 from roc-lang/dev-backend-nullable-wrapped
Dev backend nullable wrapped
2023-06-01 17:11:14 +02:00
Brendan Hansknecht
121d15a2a6
Merge pull request #5423 from roc-lang/dev-backend-linked-list
Dev backend linked list
2023-06-01 13:59:28 +00:00
Richard Feldman
f45b952688
Merge pull request #5493 from fdbeirao/disallow-slash-lookalikes-on-package-url
Disallow @ and slash lookalikes on package url
2023-06-01 06:35:03 -04:00
KilianVounckx
8b85f966fd
Merge branch 'roc-lang:main' into list-update 2023-06-01 11:16:33 +02:00
Folkert de Vries
6d6e3b9c60
Merge pull request #5496 from roc-lang/remove-libc-instrinsic
Stop using llvm instrinsics that just call libc
2023-06-01 10:46:27 +02:00
Brendan Hansknecht
ccb434bae1
Update cli_run cli_args test
Note: this answer is less correct,
but that is because zigs sub answers are more correct.

Zig specifically gives a more accurate answer for Num.log 3.
old answer:     1.0986122886681098
zig's answer:   1.0986122886681096
correct answer: 1.098612288668109691395

Both answers are technically correct when limited to doubles.
Zig's answer is closer to truly correct.
That said, the more correct answer leads to a slight rounding error in the final division.
So the new output is 4.000000000000001 instead of 4.0
2023-05-31 22:15:05 -07:00
Brendan Hansknecht
7683c5ae53
Stop using llvm instrinsics that just call libc
In a future PR. I will change zig to insure that all of these instrinsics
use musl directly and do not call out to the linked libc.
2023-05-31 20:00:04 -07:00
Folkert
f6fafdb019
nullable unwrapped for the dev backend 2023-06-01 00:02:38 +02:00
Folkert
0adf075123
make bool intern with semanctis 2023-05-31 23:59:40 +02:00
Folkert
f1375b27cc
fix mono tests, again 2023-05-31 23:59:26 +02:00
Folkert
4af9788b51
fix register logic bug in reset/reuse 2023-05-31 23:57:38 +02:00
Folkert
0ace44ae8c
implement reset/reuse in the dev backend 2023-05-31 23:57:38 +02:00
Folkert
f609ec68fc
update mono tests?! 2023-05-31 23:57:38 +02:00
Folkert
dfed7b95e6
enable more tests 2023-05-31 23:57:37 +02:00
Folkert
8833096a07
clippy 2023-05-31 23:57:37 +02:00
Folkert
c24312a045
fix logic error 2023-05-31 23:57:37 +02:00
Folkert
58d4ae91d2
clippy 2023-05-31 23:57:36 +02:00
Folkert
e33c2b3c84
first working linked list test 2023-05-31 23:57:36 +02:00
Folkert
3364d03fcc
fix debug asserts in dev backend 2023-05-31 23:57:36 +02:00
Folkert
97aba2da41
add static offset to ptr read 2023-05-31 23:57:35 +02:00
Fábio Beirão
ed0e445052
Fix formatting errors
Contributes to #5487
2023-05-31 23:09:09 +02:00
Fábio Beirão
778a0dcb67
Adjust the misleading characters to use the \u{} syntax, but still show the rendered example
Contributes to #5487
2023-05-31 22:15:45 +02:00
Fábio Beirão
24b96d872c
Refactor the https tests to not use should_panic
Thanks for the excellent tip, @rtfeldman
Contributes to #5487
2023-05-31 22:10:19 +02:00
Fábio Beirão
6448326e85
Change the implementation to use chars instead of strings
Also include a performance improvement by only iterating over the url's characters once
Contributes to #5487
2023-05-31 21:47:56 +02:00
Fábio Beirão
5b186fbebe
Move the unicode descriptions to be inline with the array items
Improves readability
Contributes to #5487
2023-05-31 21:42:20 +02:00
Fábio Beirão
d633fbf89f
Provide a better explanation to the motivation for disalowing misleading characters
Contributes to #5487
2023-05-31 21:37:50 +02:00
Tero Laxström
17be5a6fd1
Fix typo in gen-dev for float_add_overflow test 2023-05-31 20:52:10 +03:00
Fábio Beirão
a557738791
Add a few unit tests to PackageMetadata
Contributes to #5487
2023-05-31 18:51:28 +02:00
Fábio Beirão
5744387693
Add "@" to the list of misleading characters
Contributes to #5487
2023-05-31 18:50:49 +02:00
Fábio Beirão
842f8b9941
Adjust packaging/https to check for misleading unicode characters
Related to #5487
2023-05-31 16:48:33 +02:00
Anton-4
f6b76f2df5
Num.exp is Num.pow now
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-05-31 15:28:31 +02:00
Anton-4
0c50ee0458
Merge pull request #5485 from roc-lang/manual-compiler-rt
Add all fns in compiler-rt that builtins are known to depend on
2023-05-31 10:59:09 +02:00
Brendan Hansknecht
e7906b30a9
add other compiler-rt functions in builtins.o 2023-05-30 14:38:10 -07:00
Brendan Hansknecht
a41611b553
allow ingested compiler-rt function in windows surgical linker 2023-05-30 12:11:15 -07:00
Brendan Hansknecht
fe4577ce4c
fix typo 2023-05-30 09:38:30 -07:00