Anton-4
1bcf30391b
Merge pull request #6819 from roc-lang/rust-1-77-2-upgrade
...
Rust 1.77.2 upgrade
2024-07-06 03:23:54 +02:00
Kiryl Dziamura
819cfd6035
fix test snapshots
2024-07-01 19:48:00 +02:00
Kiryl Dziamura
6329389972
add tests
2024-07-01 19:47:49 +02:00
Kiryl Dziamura
1008b94259
fix returned expression desugaring
2024-07-01 19:46:59 +02:00
Kiryl Dziamura
de9ed734c5
remove EmptyDefsFinal
2024-07-01 18:45:23 +02:00
Kiryl Dziamura
9c133f72d8
test bang in dbg arg
2024-06-28 13:31:47 +02:00
Kiryl Dziamura
aa17d17c60
handle bang in dbg arg
2024-06-28 13:26:38 +02:00
Luke Boswell
1c091e6cd5
Merge pull request #6826 from JRI98/fix_6825
...
Handle multi pattern unbound list rest variables
2024-06-28 10:18:11 +10:00
Isak
cc7d3d3e1d
fix: allow multiple newlines between signature and body
2024-06-27 13:34:09 -04:00
Kiryl Dziamura
bff73ff6b2
check if final expr in deps is suffixed
2024-06-25 19:14:18 +02:00
JRI98
f4551978ce
Handle multi pattern unbound list rest variables
2024-06-21 17:01:49 +01:00
Anton-4
05a61e2210
clippy + fmt
2024-06-19 12:34:10 +02:00
shua
f7bec802c0
PR: rename to List.concatUtf8
2024-06-08 13:36:20 +02:00
shua
33e8a7a439
implement Str.concatUtf8
2024-06-07 19:05:52 +02:00
Kiryl Dziamura
3e5cfb546d
check if when branch is suffixed
2024-06-03 23:45:54 +02:00
Kiryl Dziamura
967da48969
Fix typo
2024-06-03 16:58:40 +02:00
Kiryl Dziamura
8883ab9a91
Desugar expect continuation
2024-06-03 16:58:31 +02:00
Kiryl Dziamura
e86c6235c1
add multiple args test
2024-05-28 11:34:01 +02:00
Kiryl Dziamura
24f6e46c64
panic with unreachable error
2024-05-28 11:26:32 +02:00
Kiryl Dziamura
cbe5d127d7
fix typos
2024-05-28 09:48:54 +02:00
Kiryl Dziamura
ce6e21ff7a
ignore def pattern for function args
2024-05-27 18:21:00 +02:00
Richard Feldman
8357bd8c91
Revise errors for undeclared type vars in aliases
2024-05-12 21:20:11 -04:00
Agus Zubiaga
c0bb46517c
Desugar params in imports
2024-05-09 07:42:10 -03:00
Agus Zubiaga
e5a09b5de6
Parse module params in import
2024-05-09 07:42:07 -03:00
Ayaz
cc1bc68eb4
Merge pull request #6717 from roc-lang/optional-ingested-ann
...
Optional annotation in ingested file imports
2024-05-07 21:18:12 -05:00
Agus Zubiaga
8a25e4aac4
Handle optional annotation in ingested files when canonicalizing
2024-05-05 16:57:56 -03:00
Luke Boswell
9a7b62ac22
handle dbg when unwrapping suffixed !
2024-05-04 21:37:47 +02:00
Anton-4
f7011c8e33
Merge pull request #6644 from roc-lang/rust-1-76-0-upgrade
...
Rust 1.76.0 upgrade
2024-05-03 07:25:19 +02:00
Agus Zubiaga
057a18573a
New module
header
...
Implements the new `module` header syntax as described in "module and package changes" [1]:
```
module [Request, Response, req]
```
The old syntax should still work fine, and is automatically upgraded to the new one
when running `roc format`.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
2024-05-01 10:39:12 -03:00
Anton-4
c303be7553
Merge branch 'main' into rust-1-76-0-upgrade
2024-04-30 19:36:01 +02:00
Agus Zubiaga
a8a829aadd
Merge branch 'main' into inline-imports
2024-04-28 00:11:29 -03:00
Luke Boswell
74e531b994
remove suffixed from Ident::Access and cleanup
2024-04-28 08:48:08 +10:00
Luke Boswell
20f277c132
update later tests
2024-04-28 08:47:08 +10:00
Luke Boswell
db4607125b
remove suffixed from Pattern
2024-04-28 08:47:08 +10:00
Luke Boswell
2fe03e6c91
remove suffixed from Expr::Var
2024-04-28 08:47:08 +10:00
Luke Boswell
1640ee1321
update logic for Expr::TaskAwaitBang
2024-04-28 08:47:08 +10:00
Joshua Warner
7c53cf0cd7
Fixup tests
2024-04-28 08:47:07 +10:00
Joshua Warner
6080c12ca8
Parse !
suffixes as an Expr::TaskAwaitBang instead of using suffix field in ident
2024-04-28 08:47:07 +10:00
Richard Feldman
6571c18a35
Update tests
2024-04-25 23:10:45 -04:00
Richard Feldman
f557a29090
Don't add Ok and Err as symbols to scope
2024-04-25 20:07:40 -04:00
Agus Zubiaga
e500d664fd
can: Replace AnnotationReferences with plain References
...
`AnnotationReferences` ignored the fact that within an annotation
the same symbol could be referenced both in a qualified and unqualified
manner.
By using `References` we will properly track all the possible combinations.
2024-04-23 21:16:32 -03:00
Agus Zubiaga
5ca1494df1
Add IdentIds::exposed_values
2024-04-23 20:12:54 -03:00
Agus Zubiaga
0f89d3558a
impl From<ImportedModuleName> for QualifiedModuleName
2024-04-23 20:03:07 -03:00
Agus Zubiaga
f69bc2e46f
Merge branch 'main' into inline-imports
2024-04-23 18:57:20 -03:00
Agus Zubiaga
7efc7a4a3e
Canonicalize ingested files directly instead of creating AST nodes
2024-04-23 18:55:41 -03:00
Anton-4
8902f3e9e3
fix typo
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-04-23 12:57:04 +02:00
Agus Zubiaga
6006669702
Report unused imports after canonicalizing platform requires ann
2024-04-22 19:53:19 -03:00
Agus Zubiaga
d952d5576a
Handle explicit builtin imports with empty exposing lists
...
Also includes related style suggestions by Ayaz on #6658
2024-04-22 18:29:48 -03:00
Agus Zubiaga
66bf955a6e
can/def match => if..let
2024-04-22 17:51:51 -03:00
Agus Zubiaga
d17eb8d340
Remove #[inline] ann for can::Env::module_exists_but_not_imported
2024-04-22 17:47:02 -03:00