Commit Graph

112 Commits

Author SHA1 Message Date
Ayaz Hafiz
05e8e6de6f
Disallow typing optional fields when required fields are annotated
Closes #4313
2022-10-18 15:50:20 -05:00
Jan Van Bruggen
be3e4e7b11
De-bump all v0.1.0 Roc packages to v0.0.1 2022-10-09 00:16:19 -06:00
Ayaz Hafiz
73210469db
Add tests for env var passing 2022-10-05 14:36:34 -05:00
Ayaz Hafiz
1cffb3376e
Ignore can errors in glue tests 2022-09-30 13:40:35 -05:00
Richard Feldman
b6157e76b8
Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
Richard Feldman
ac68d75eec
Merge pull request #3989 from roc-lang/fix-glue-segfault
Fix glue segfault for newtype wrappers around recursive tag unions
2022-09-13 13:47:51 -07:00
dependabot[bot]
0079048944
Bump bumpalo from 3.10.0 to 3.11.0
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.10.0...3.11.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 21:08:56 +00:00
Richard Feldman
f85f1b84a2
Merge pull request #3991 from roc-lang/glue-handle-multiple-modules
Add glue test case for multiple modules, and when anonymous type is reused
2022-09-12 13:55:41 -07:00
Ayaz Hafiz
0b2cea8c42
Move 2022-09-12 13:25:01 -04:00
Ayaz Hafiz
564d9f795a
Deal with equivalence in the presence of unresolved recursive pointers 2022-09-12 12:39:47 -04:00
Ayaz Hafiz
9eb1c170f3
Print unreachable id 2022-09-12 12:26:44 -04:00
Ayaz Hafiz
9f3a44d323
Remove redundant reference 2022-09-12 12:26:44 -04:00
Ayaz Hafiz
ea527f627f
Add test for multiple modules and anonymous string 2022-09-12 12:26:43 -04:00
Ayaz Hafiz
f1b5705b06
Re-use existing ID of added anonymous type, when possible 2022-09-12 12:26:43 -04:00
Ayaz Hafiz
15f66e3eaa
Add some tracing for debug purposes 2022-09-12 12:26:43 -04:00
dependabot[bot]
35b2e9c80f
Bump clap from 3.2.18 to 3.2.20
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.18 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.20)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 10:33:19 +00:00
dependabot[bot]
d1c406812f
Bump pretty_assertions from 1.2.1 to 1.3.0
Bumps [pretty_assertions](https://github.com/rust-pretty-assertions/rust-pretty-assertions) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/rust-pretty-assertions/rust-pretty-assertions/releases)
- [Changelog](https://github.com/rust-pretty-assertions/rust-pretty-assertions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-pretty-assertions/rust-pretty-assertions/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: pretty_assertions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 05:28:00 +00:00
Jan Van Bruggen
824f8a3e48
Move "🔨 Rebuilding platform..." message from stdout to stderr 2022-09-11 10:25:02 -06:00
Richard Feldman
474a31d7d6
Fix test 2022-09-07 15:36:32 -04:00
Richard Feldman
3a12aa26cc
Use repr(transparent) in glue for newtype wrappers 2022-09-07 13:00:08 -04:00
Richard Feldman
5b787aa218
Glue newtype wrappers of recursive tag unions 2022-09-07 13:00:07 -04:00
Richard Feldman
a1f3036fc8
Reduce some allocations in glue 2022-09-07 13:00:07 -04:00
dependabot[bot]
d061730960
Bump dircpy from 0.3.12 to 0.3.13
Bumps [dircpy](https://github.com/woelper/dircpy) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/woelper/dircpy/releases)
- [Commits](https://github.com/woelper/dircpy/commits)

---
updated-dependencies:
- dependency-name: dircpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 14:02:27 +00:00
Ayaz Hafiz
3b4b1838b8
Push layout interner further through Layout 2022-08-31 14:33:52 -05:00
Ayaz Hafiz
c5466810a4
Add LayoutInterner to LayoutCache
Adds a thread-local interner of layouts to LayoutCache, and updates all
references appropriately.

This is a bit suboptimal for single-threaded workloads that will look at
creating layout caches again, like the REPL, but I think that's okay for
now - since the global interner will be uncontested for those workloads, it
should still be plenty fast to access the interner, even behind a lock.
2022-08-31 14:33:51 -05:00
dependabot[bot]
492eff3556
Bump clap from 3.2.11 to 3.2.18
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.11 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.11...v3.2.18)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 10:17:11 +00:00
Richard Feldman
282a31ae8b
Fix glue for into_ and as_ on single-tag unions 2022-08-26 11:28:26 -04:00
Richard Feldman
641f089384
Use repr(transparent) for single-tag union glue 2022-08-26 09:18:20 -04:00
Richard Feldman
3a1f2a2fcf
clippy 2022-08-21 18:06:32 -04:00
Richard Feldman
3b9c65aefe
Disable more clippy checks in glue 2022-08-21 18:06:31 -04:00
Richard Feldman
e829d2af5b
Revert "Ignore all clippy lints in glue"
This reverts commit 436d2359f5352eed18b91022cf5d86a00dd0c6b4.
2022-08-21 18:06:31 -04:00
Richard Feldman
c1aee72c73
Ignore all clippy lints in glue 2022-08-21 18:06:31 -04:00
Richard Feldman
32f4546518
Skip rustfmt on glue 2022-08-21 18:06:31 -04:00
Richard Feldman
cd01e7fe76
Add #![allow(unused_unsafe)] to Rust glue header 2022-08-21 18:06:31 -04:00
Richard Feldman
64cea0e7ff
Don't glue ManuallyDrop for types that are Copy 2022-08-21 18:06:31 -04:00
Richard Feldman
577128d410
Check in initial glue for RocType etc 2022-08-21 18:06:30 -04:00
Richard Feldman
fa1f2f87ae
Fix glue generation for keywords 2022-08-21 18:06:30 -04:00
Richard Feldman
ace37cf613
Glue 2-tag unions w/ no payloads (but aren't Bool) 2022-08-21 18:06:30 -04:00
Richard Feldman
539429f16b
Add RocType.roc to glue 2022-08-21 18:06:29 -04:00
Richard Feldman
ccd0d32332
Merge remote-tracking branch 'origin/main' into glue-dict 2022-08-21 09:51:22 -04:00
Richard Feldman
8742a81caf
Add len for RocDict and RocSet 2022-08-15 13:05:32 -04:00
Richard Feldman
0b54f08f7f
Generate glue for Set 2022-08-15 13:05:32 -04:00
Richard Feldman
ef64966159
Add glue test for Set 2022-08-15 13:05:31 -04:00
Richard Feldman
99da1cbf6f
Fix some unused warnings 2022-08-15 13:05:31 -04:00
Richard Feldman
1b4a98167c
Add a glue test for Dict 2022-08-15 13:05:31 -04:00
Richard Feldman
3f950059b8
Glue for dictionaries 2022-08-15 10:59:58 -04:00
Richard Feldman
5c4d6d3dfc
Add todos for glue for Dict and Set 2022-08-15 10:59:58 -04:00
dependabot[bot]
4c6ad52c47
Bump indoc from 1.0.6 to 1.0.7
Bumps [indoc](https://github.com/dtolnay/indoc) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.6...1.0.7)

---
updated-dependencies:
- dependency-name: indoc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 13:18:18 +00:00
dependabot[bot]
7d174089ae
Bump dircpy from 0.3.10 to 0.3.12
Bumps [dircpy](https://github.com/woelper/dircpy) from 0.3.10 to 0.3.12.
- [Release notes](https://github.com/woelper/dircpy/releases)
- [Commits](https://github.com/woelper/dircpy/commits)

---
updated-dependencies:
- dependency-name: dircpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 05:30:48 +00:00
Richard Feldman
778f7fe45e
Fix strategy for fixing up pending recursive types 2022-08-12 10:40:39 -04:00