Richard Feldman
579feeeadd
Revert "WIP try combining PlatformHeaderInfo & HeaderInfo"
...
This reverts commit 100044295f
.
2022-12-06 14:06:00 -05:00
Richard Feldman
100044295f
WIP try combining PlatformHeaderInfo & HeaderInfo
2022-12-06 14:05:29 -05:00
Richard Feldman
6115781b9d
Merge PlatformHeaderInfo into revised HeaderInfo
2022-12-04 06:36:04 -05:00
Richard Feldman
f20c7db029
Load all packages, not just the platform
2022-12-04 06:31:49 -05:00
Richard Feldman
0d2692f776
Use ..Default::default()
2022-12-04 06:31:49 -05:00
Richard Feldman
71478c297d
Fix some indentation
2022-12-04 06:26:45 -05:00
Richard Feldman
26f77ecffd
Add some more logging to file.rs
2022-12-04 06:26:44 -05:00
Richard Feldman
bee24fcd37
Add parse tests for package header
2022-12-04 06:26:44 -05:00
Richard Feldman
8a5ddaab2f
Drop imports
from package header
...
That doesn't actually make sense!
2022-12-04 06:26:44 -05:00
Richard Feldman
da595a86b0
Parse package module header
2022-12-04 06:26:44 -05:00
Richard Feldman
d90f551670
Merge pull request #4638 from roc-lang/fail-fast-false
...
don't cancel all tests when one fails
2022-12-04 05:38:00 -05:00
Anton-4
8ef05b523f
Merge branch 'main' of github.com:roc-lang/roc into fail-fast-false
2022-12-04 09:21:09 +01:00
Ayaz
9becbedd22
Merge pull request #4672 from roc-lang/ayazhafiz-patch-1
...
Revert stray introduction from #4661
2022-12-03 13:43:00 -06:00
Ayaz
9bf23196a8
Revert stray introduction from #4661
...
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2022-12-03 12:32:46 -06:00
Ayaz
c61c42bff7
Merge pull request #4661 from roc-lang/roc-test-dev
...
`test` has `dev` behavior, and `dev` does not exit if there are warnings
2022-12-03 12:26:00 -06:00
Anton-4
24b888598f
Merge pull request #4640 from kubukoz/fix-nix
...
Fix nix build
2022-12-03 17:57:56 +01:00
Anton-4
f56386b3f2
update wasm3-rs sha
2022-12-03 15:56:45 +01:00
Anton-4
da830202e8
Merge remote-tracking branch 'upstream/main' into fix-nix
2022-12-03 15:54:33 +01:00
Anton-4
bb7d5b3d27
ditch redundant flake build
...
Turns out the flake was using the default.nix file, no need to build that twice...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-12-03 15:50:08 +01:00
Anton-4
8e851b13ad
use cargoLock instead of cargSha256
...
This prevents needing to update the cargoSha256 every time the cargo lock file changes.
2022-12-03 15:07:35 +01:00
Anton-4
561ebbc659
Merge pull request #4667 from marc136/patch-1
...
Fix `<code>` tag in tutorial
2022-12-03 14:35:30 +01:00
Folkert de Vries
24e4048cb5
Merge pull request #4660 from roc-lang/linux-stub-lib
...
Linux stub lib
2022-12-03 10:50:12 +01:00
Marc Walter
7751b2e755
Remove trailing newline
...
Oops, edited the file on mobile.
Only wanted to make the sinhle change
Signed-off-by: Marc Walter <walter.marc@outlook.com>
2022-12-03 08:24:09 +01:00
Marc Walter
274dc886b2
Fix <code>
tag in tutorial
...
I was following the cool tutorial and noticed this tiny typo.
I saw no PR to fix it, so I created one.
Signed-off-by: Marc Walter <walter.marc@outlook.com>
2022-12-03 08:20:46 +01:00
Ayaz
012810d7e8
Merge pull request #4664 from roc-lang/i2551
...
Ensure that llvm gen_ wrappers account different recursive pointers
2022-12-02 17:39:26 -06:00
Ayaz Hafiz
7562525e96
Bugfix match
2022-12-02 16:31:47 -06:00
Ayaz Hafiz
304b88cdb2
Fix bug in expect test
2022-12-02 16:20:56 -06:00
Ayaz Hafiz
705ce10085
New problem dropped
2022-12-02 14:14:18 -06:00
Ayaz Hafiz
66419e8f29
The yeah yeah yeahs
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
8e2c2e1809
It's an error to expose values that aren't defined
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
845a2f8c75
Report warnings in roc test
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
37c689841a
dev/test don't exit early for warnings
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
c351be3230
Import in test reporting
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
7e512077e7
Fix imports for repl
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
39f89e3d65
Get severity from type problem variants
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
5414b4b60f
Fix imports
2022-12-02 14:11:58 -06:00
Ayaz Hafiz
e438fbf37c
Enumerate severity on problem variants
2022-12-02 14:11:57 -06:00
Ayaz Hafiz
0a4ec1958b
roc test stops if there are type errors
2022-12-02 14:11:57 -06:00
Ayaz
b5a195eaf0
Merge pull request #4650 from roc-lang/detect-reachable-by-recursion-only
...
Provide warning for defs that are used only in (mutual) recursion
2022-12-02 13:39:52 -06:00
Ayaz Hafiz
3685ad2ed2
Ensure that llvm gen_ wrappers account different recursive pointers
...
Closes #2551
2022-12-02 13:38:32 -06:00
Ayaz
0a31f30e92
Merge pull request #4662 from roc-lang/mono-cleanup
...
Cleanup unneeded IR lowering code after #4648
2022-12-02 13:20:05 -06:00
Anton-4
22dcb0194e
features flag may mess up test
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-12-02 20:03:22 +01:00
Ayaz Hafiz
5cfbc49ebf
Remove needless hole translation
2022-12-02 12:21:44 -06:00
Ayaz Hafiz
52c858dc53
Remove aliases in partial procs
...
This is no longer needed
2022-12-02 12:19:13 -06:00
Ayaz Hafiz
0f6f34983f
Remove stale comment
2022-12-02 11:50:12 -06:00
Ayaz Hafiz
947808bbb3
Checking if a connected component has a bridge needs to look at all edges
...
With a graph
A -> B
if we visit the order B, A to collect SCCs, we won't see that B has
pre-order edges until we look at A.
2022-12-02 11:50:12 -06:00
Ayaz Hafiz
0a807dc43e
Provide warning for defs that are used only in (mutual) recursion
...
This patch provides errors for defs that are used only in
possibly-mutual recursion, and are not reachable outside of their
recursive closures. For example:
```
test_report!(
mutual_recursion_not_reached_nested,
indoc!(
r#"
app "test" provides [main] to "./platform"
main =
f = \{} -> if Bool.true then "" else g {}
g = \{} -> if Bool.true then "" else f {}
""
"#
),
@r###"
── DEFINITIONs ONLY USED IN RECURSION ──────────────────── /code/proj/Main.roc ─
These 2 definitions are only used in mutual recursion with themselves:
4│> f = \{} -> if Bool.true then "" else g {}
5│> g = \{} -> if Bool.true then "" else f {}
If you don't intend to use or export any of them, they should all be
removed!
"###
);
```
2022-12-02 11:50:12 -06:00
Ayaz
1beb00f490
Merge pull request #4645 from roc-lang/i4606
...
Do not bind accessors in toplevel thunks to their thunks' names
2022-12-02 11:46:00 -06:00
Anton-4
a91a2b138b
CI tests for building default.nix and flake.nix
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-12-02 16:17:43 +01:00
Anton-4
975116895d
ditch --workspace
...
Apparently this was not running the tests I expected it to run, I suspect it is the `--workspace` flag
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-12-02 16:13:52 +01:00