-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jared/improve-module-error
- Loading branch information
Showing
31 changed files
with
562 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/rust | ||
{ | ||
"name": "Rust", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye", | ||
|
||
// Use 'mounts' to make the cargo cache persistent in a Docker Volume. | ||
// "mounts": [ | ||
// { | ||
// "source": "devcontainer-cargo-cache-${devcontainerId}", | ||
// "target": "/usr/local/cargo", | ||
// "type": "volume" | ||
// } | ||
// ] | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/zig:1": { | ||
"version": "0.13.0" | ||
}, | ||
"ghcr.io/devcontainers-community/features/llvm:3": { | ||
"version": 18 | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "rustc --version", | ||
"onCreateCommand": "sudo apt-get update && sudo apt-get install -y pkg-config libz-dev libzstd-dev valgrind" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...compiler/test_syntax/tests/snapshots/fail/empty_record_assign_expect_bang.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Expr(Start(@0), @0) |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...s/compiler/test_syntax/tests/snapshots/fail/nested_when_expect_binop_when.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Expr(When(Branch(Start(@13), @13), @0), @0) |
4 changes: 4 additions & 0 deletions
4
crates/compiler/test_syntax/tests/snapshots/fail/nested_when_expect_binop_when.expr.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
when s | ||
is | ||
z->expect!%when s | ||
is z->q |
2 changes: 2 additions & 0 deletions
2
...ompiler/test_syntax/tests/snapshots/pass/double_closure_newlines_binop.expr.formatted.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
\j -> (e \B -> B) | ||
> s |
52 changes: 52 additions & 0 deletions
52
...s/compiler/test_syntax/tests/snapshots/pass/double_closure_newlines_binop.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@0-16 SpaceAfter( | ||
Closure( | ||
[ | ||
@1-2 Identifier { | ||
ident: "j", | ||
}, | ||
], | ||
@4-16 BinOps( | ||
[ | ||
( | ||
@4-12 SpaceAfter( | ||
Apply( | ||
@4-5 Var { | ||
module_name: "", | ||
ident: "e", | ||
}, | ||
[ | ||
@5-12 Closure( | ||
[ | ||
@6-7 SpaceAfter( | ||
Tag( | ||
"B", | ||
), | ||
[ | ||
Newline, | ||
], | ||
), | ||
], | ||
@11-12 Tag( | ||
"B", | ||
), | ||
), | ||
], | ||
Space, | ||
), | ||
[ | ||
Newline, | ||
], | ||
), | ||
@14-15 GreaterThan, | ||
), | ||
], | ||
@15-16 Var { | ||
module_name: "", | ||
ident: "s", | ||
}, | ||
), | ||
), | ||
[ | ||
Newline, | ||
], | ||
) |
3 changes: 3 additions & 0 deletions
3
crates/compiler/test_syntax/tests/snapshots/pass/double_closure_newlines_binop.expr.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
\j->e\B | ||
->B | ||
>s |
2 changes: 0 additions & 2 deletions
2
...piler/test_syntax/tests/snapshots/pass/empty_record_assign_expect_bang.expr.formatted.roc
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
...compiler/test_syntax/tests/snapshots/pass/empty_record_assign_expect_bang.expr.result-ast
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
crates/compiler/test_syntax/tests/snapshots/pass/h_parens_as_parens_h_ann.expr.formatted.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
N : A (H as H) H | ||
I |
62 changes: 62 additions & 0 deletions
62
crates/compiler/test_syntax/tests/snapshots/pass/h_parens_as_parens_h_ann.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
@0-16 SpaceAfter( | ||
Defs( | ||
Defs { | ||
tags: [ | ||
EitherIndex(0), | ||
], | ||
regions: [ | ||
@0-14, | ||
], | ||
space_before: [ | ||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 }, | ||
], | ||
space_after: [ | ||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 }, | ||
], | ||
spaces: [], | ||
type_defs: [ | ||
Alias { | ||
header: TypeHeader { | ||
name: @0-1 "N", | ||
vars: [], | ||
}, | ||
ann: @2-14 Apply( | ||
"", | ||
"A", | ||
[ | ||
@5-0 As( | ||
@5-6 Apply( | ||
"", | ||
"H", | ||
[], | ||
), | ||
[], | ||
TypeHeader { | ||
name: @10-11 "H", | ||
vars: [], | ||
}, | ||
), | ||
@13-14 Apply( | ||
"", | ||
"H", | ||
[], | ||
), | ||
], | ||
), | ||
}, | ||
], | ||
value_defs: [], | ||
}, | ||
@15-16 SpaceBefore( | ||
Tag( | ||
"I", | ||
), | ||
[ | ||
Newline, | ||
], | ||
), | ||
), | ||
[ | ||
Newline, | ||
], | ||
) |
2 changes: 2 additions & 0 deletions
2
crates/compiler/test_syntax/tests/snapshots/pass/h_parens_as_parens_h_ann.expr.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
N:A((H)as H) H | ||
I |
2 changes: 2 additions & 0 deletions
2
crates/compiler/test_syntax/tests/snapshots/pass/tag_union_ann_with_as.expr.formatted.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1 : [N (* as S)] | ||
_ |
Oops, something went wrong.