Ayaz Hafiz
3d0a0a4a99
Update more dict/set references
2023-01-14 15:33:54 +01:00
Ayaz Hafiz
1960f429bd
Cleanup of lints
2023-01-11 14:39:12 -06:00
Ayaz Hafiz
fa8effd3e8
Make all layouts interned in mono
2023-01-11 14:38:41 -06:00
Ayaz Hafiz
e14a0abb99
Store target info on layout interners
2023-01-11 14:32:16 -06:00
Folkert de Vries
d8b2ff07f8
Merge pull request #4802 from roc-lang/valgrind-unit-tests
...
Valgrind unit tests
2023-01-11 19:45:28 +01:00
Folkert
a9cd6c6832
test forcing host-exposed always owning params
2023-01-10 19:17:39 +01:00
Folkert
e926bced10
refactor load/file logic
2023-01-09 23:31:19 +01:00
Ayaz Hafiz
50826d1a83
Inline interners into the layout interner module
...
I realized that we'll need to make the layout interner more complicated
to support things like recursive pointers pointing to their parents and
to support lambda set layout caching. Since the layout interner is the
only user of intern crate right now anyway, just inline the whole thing.
2023-01-03 14:19:39 -06:00
Ayaz Hafiz
b60d5c0251
Push wrapped layout interners through
2023-01-03 10:51:33 -06:00
Joshua Warner
0da50a612d
Be more lenient with required indentation in collections
...
... and also remove a bunch of now-dead errors that can't be triggered.
2023-01-01 17:49:51 -08:00
Ayaz Hafiz
039bab65f5
Remove unused imports
2022-12-29 18:43:28 -06:00
Ayaz Hafiz
972046445b
Lift Niche from just captures-niche to generic niche
2022-12-29 18:43:26 -06:00
Ayaz
7076c889a5
Merge pull request #4828 from roc-lang/refactor-build
...
Refactor build
2022-12-29 18:41:22 -06:00
Ayaz
858670fac7
Merge pull request #4833 from roc-lang/intern-layouts
...
Intern all the layouts
2022-12-29 18:28:44 -06:00
Folkert
0eb41ad97f
another conditional compilation fix
2022-12-29 18:42:06 +01:00
Folkert
1995d8b3df
refactor cli/src/build.rs
2022-12-29 16:50:20 +01:00
Ayaz Hafiz
c03c0b2978
Fix mutability lint in debug mode
2022-12-28 19:05:03 -06:00
Ayaz Hafiz
62ac3545af
Avoid unneeded mut in release
2022-12-28 18:54:12 -06:00
Ayaz Hafiz
7045001f64
Intern captures layouts
2022-12-28 17:05:04 -06:00
Richard Feldman
5227b5ff43
c l i p p y
2022-12-27 00:31:54 -05:00
Richard Feldman
b749ac28c9
Use module-level comments for top-level docs
2022-12-26 23:55:54 -05:00
Richard Feldman
3171a15ed0
Parse header_docs
2022-12-26 23:15:48 -05:00
Richard Feldman
74e16c5293
Clarify a comment
2022-12-26 23:15:48 -05:00
Richard Feldman
8c40d72a1f
Don't add exposed modules to imported_modules
2022-12-26 04:35:23 -05:00
Richard Feldman
a663634e30
Add a comment
2022-12-25 17:15:53 -05:00
Richard Feldman
e5c5ae3e3f
Make a debug_assert! more precise
2022-12-25 17:13:42 -05:00
Richard Feldman
73fa34ba31
Only add extra imported modules when it's the root
2022-12-24 22:50:47 -05:00
Richard Feldman
1e0f5c2b28
Fix missing shorthands when importing packages
2022-12-24 22:49:40 -05:00
Richard Feldman
c925686443
Add some debug_assert! checks
2022-12-24 22:40:44 -05:00
Richard Feldman
5c80657bb2
Update some comments and docs
2022-12-24 22:32:16 -05:00
Richard Feldman
52bbe0062f
Drop an unnecessary scope block
2022-12-24 22:32:16 -05:00
Richard Feldman
34417f5692
clippy
2022-12-24 22:32:16 -05:00
Richard Feldman
c0dd801db6
Use VecMap over MutMap to store module docs
2022-12-24 22:32:15 -05:00
Richard Feldman
361d930f46
Load exposes
entries in addition to imports
2022-12-24 22:32:15 -05:00
Richard Feldman
d8d517d6f9
Support generating docs for packages too
2022-12-24 22:32:14 -05:00
Richard Feldman
15d4c2ad68
Don't render undexposed types in docs
2022-12-24 22:32:13 -05:00
Richard Feldman
15590fb31b
Generate docs basde on package root .roc file
2022-12-24 22:32:13 -05:00
Richard Feldman
e549456668
Store exposed module IDs in file loading state
2022-12-24 22:32:13 -05:00
Richard Feldman
ab45d6c632
Fix docs generation of types
2022-12-24 22:32:12 -05:00
Richard Feldman
09764be7c3
Go back to PackageName
2022-12-18 10:11:19 -05:00
Richard Feldman
ecf7bea259
Temporarily disable an assertion.
...
I'm going to go back and revise all this LoadingProblem logic
later, but for now this unblocks things.
2022-12-18 06:19:33 -05:00
Richard Feldman
10c8523888
Handle FileProblem explicitly
2022-12-17 03:57:11 -05:00
Richard Feldman
ed0b07a62f
clippy
2022-12-17 03:35:39 -05:00
Richard Feldman
3e448fd2b4
Merge remote-tracking branch 'origin/main' into packages
2022-12-17 03:32:52 -05:00
Richard Feldman
b21a3a4fdb
Handle loading errors more consistently
2022-12-17 03:31:10 -05:00
Richard Feldman
7b85775ee6
Drop a dbg!
2022-12-16 12:30:38 -05:00
Richard Feldman
27fc823795
Drop a redundant Instant::now()
2022-12-16 12:27:22 -05:00
Richard Feldman
94818fc6cc
Create header messages for packages
2022-12-15 17:45:32 -05:00
Ayaz Hafiz
66c5e1292e
Thread expectations through in phase result structs
...
And provide expectation subs when expectations should be compiled. This
will be useful for getting the specialized type of an expect lookup when
it's available.
2022-12-14 16:55:14 -06:00
Richard Feldman
3e5b62db1a
Move exposes
into HeaderType
2022-12-13 06:59:25 -05:00