Commit graph

2516 commits

Author SHA1 Message Date
dependabot[bot]
a43ee0dfe2
Bump serial_test from 0.8.0 to 0.9.0
Bumps [serial_test](https://github.com/palfrey/serial_test) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/palfrey/serial_test/releases)
- [Commits](https://github.com/palfrey/serial_test/compare/v0.8.0...v0.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-14 09:18:07 +00:00
dependabot[bot]
cd0a26c2c2
Bump wasm-bindgen-futures from 0.4.31 to 0.4.32
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.31 to 0.4.32.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-14 09:17:19 +00:00
Ayaz
38a7b6cef0
Merge pull request #3782 from roc-lang/dependabot/cargo/nonempty-0.8.0
Bump nonempty from 0.7.0 to 0.8.0
2022-08-13 13:36:44 -07:00
Ayaz
11f0de21e1
Merge pull request #3781 from roc-lang/dependabot/cargo/insta-1.18.2
Bump insta from 1.15.0 to 1.18.2
2022-08-13 13:36:32 -07:00
Ayaz
dd011893c9
Merge pull request #3779 from roc-lang/dependabot/cargo/pulldown-cmark-0.9.2
Bump pulldown-cmark from 0.9.1 to 0.9.2
2022-08-13 13:36:09 -07:00
Ayaz
931b7da296
Merge pull request #3744 from roc-lang/i2894
Transient captures in closures, and captures between mutually recursive defs
2022-08-13 12:48:20 -07:00
Ayaz Hafiz
c0969e5ff8
Reuse allocations in fixing closures 2022-08-13 10:38:53 -07:00
Ayaz Hafiz
d19c9107b2
swap_remove rather than removing in place 2022-08-13 10:30:58 -07:00
Ayaz Hafiz
7215acdbac
Ensure that field layouts passed to closure unwrapping are sorted 2022-08-13 10:25:18 -07:00
Ayaz Hafiz
9ffe6eb6dd
Print function argument layouts in pretty mode 2022-08-13 10:25:18 -07:00
Ayaz Hafiz
991b99250c
Clippy 2022-08-13 10:25:18 -07:00
Ayaz Hafiz
6bcd682dde
Support captures between mutually recursive closures 2022-08-13 10:25:18 -07:00
Ayaz Hafiz
4b55416ca1
Add test for outer scope transient captures 2022-08-13 10:25:18 -07:00
Ayaz Hafiz
5ead673cfc
Add gen tests for transient closure captures 2022-08-13 10:25:18 -07:00
Ayaz Hafiz
e97ce32b88
Fixup transient closure captures during canonicalization
Closure captures can be transient, but previously, we did not handle
that correctly. For example, in

```
x = ""
inner = \{} -> x
outer = \{} -> inner {}
```

`outer` captures `inner`, but `inner` captures `x`, and in the body of
`outer`, we would not construct the closure data for `inner` correctly
before calling it.

There are a couple ways around this.

1. Update mono to do something when we are passed the captured
   environment of a closure, rather than attempting to construct a
   call-by-name's captured environment before callign it.
2. Fix-up closures during canonicalization to remove captured closures
   that themselves capture, and replace them with their captures.

This patch does (2), since (1) is much more involved and is not likely
to bring a lot of wins. In general I think it's reasonable to expect
captured environments, even if transient, to be fairly shallow, so I
don't think this will produce very large closure environments.

Closes #2894
2022-08-13 10:25:17 -07:00
Folkert
d78fc47b7a
use bindgen binary again 2022-08-13 19:06:23 +02:00
Folkert
ed055a0bd8
fix compile error in test 2022-08-13 19:05:45 +02:00
dependabot[bot]
b41d5990c7
Bump nonempty from 0.7.0 to 0.8.0
Bumps [nonempty](https://github.com/cloudhead/nonempty) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/cloudhead/nonempty/releases)
- [Commits](https://github.com/cloudhead/nonempty/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:49:37 +00:00
dependabot[bot]
7ab742dd1a
Bump insta from 1.15.0 to 1.18.2
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.15.0 to 1.18.2.
- [Release notes](https://github.com/mitsuhiko/insta/releases)
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.15.0...1.18.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:49:28 +00:00
dependabot[bot]
55a9031ec1
Bump pulldown-cmark from 0.9.1 to 0.9.2
Bumps [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/raphlinus/pulldown-cmark/releases)
- [Commits](https://github.com/raphlinus/pulldown-cmark/compare/v0.9.1...v0.9.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:49:08 +00:00
dependabot[bot]
0bb096c117
Bump palette from 0.6.0 to 0.6.1
Bumps [palette](https://github.com/Ogeon/palette) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/Ogeon/palette/releases)
- [Changelog](https://github.com/Ogeon/palette/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Ogeon/palette/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-13 16:48:58 +00:00
Folkert
4bb653d389
bump the wasm function stack size in our fork of wasm3 2022-08-13 14:37:02 +02:00
Ross Smyth
80f14f61df
Add safe layout reprs and safety comments about layout 2022-08-13 03:49:12 -04:00
Richard Feldman
99a22d6bbd
Merge pull request #3747 from roc-lang/i2419
Add regression tests for #2419
2022-08-12 19:53:53 -04:00
Richard Feldman
6acc1a2544
Merge pull request #3765 from roc-lang/dependabot/cargo/crates/compiler/parse/fuzz/im-15.1.0
Bump im from 14.3.0 to 15.1.0 in /crates/compiler/parse/fuzz
2022-08-12 19:52:18 -04:00
Ayaz Hafiz
89457f9faf
Add Wasm32Result for Infallible 2022-08-12 15:42:20 -07:00
Ayaz Hafiz
aa26a0da44
Add regression tests for #2419
Closes #2419
2022-08-12 15:42:19 -07:00
Folkert de Vries
0fab77af99
Merge pull request #3751 from roc-lang/relax-clone
Don't require `Clone` on as many `RocList` methods
2022-08-13 00:11:23 +02:00
Folkert
f8fba56b0a
improve how we deal with the expect memory buffer 2022-08-13 00:01:05 +02:00
Richard Feldman
32f63f46a6
Merge pull request #3739 from roc-lang/ruby-interop
Ruby interop example
2022-08-12 17:17:27 -04:00
dependabot[bot]
f0c83f730b
Bump im from 14.3.0 to 15.1.0 in /crates/compiler/parse/fuzz
Bumps [im](https://github.com/bodil/im-rs) from 14.3.0 to 15.1.0.
- [Release notes](https://github.com/bodil/im-rs/releases)
- [Changelog](https://github.com/bodil/im-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bodil/im-rs/compare/v14.3.0...v15.1.0)

---
updated-dependencies:
- dependency-name: im
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-12 21:09:40 +00:00
Folkert
3aa4ebb02f
get expect-fx to actually run 2022-08-12 23:03:01 +02:00
Richard Feldman
58c3575e44
Fix mono tests 2022-08-12 15:28:05 -04:00
Richard Feldman
7b2c1a7e64
s/trunk/main/g 2022-08-12 15:24:37 -04:00
Richard Feldman
97e2900bf5
s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Richard Feldman
af8a81de9f
Merge pull request #3758 from roc-lang/fix-recursive-glue
Fix recursive type glue
2022-08-12 15:06:05 -04:00
Richard Feldman
641daab02c
Merge pull request #3754 from rtfeldman/avx512_valgrind_fix
valgrind fix for newer intel processors
2022-08-12 10:59:01 -04:00
Richard Feldman
778f7fe45e
Fix strategy for fixing up pending recursive types 2022-08-12 10:40:39 -04:00
Richard Feldman
1d5943ccff
Revert "Failed attempt"
This reverts commit d05f9e67e7.
2022-08-12 10:22:54 -04:00
Folkert
6c77ee2c00
expect-fx runner implementation 2022-08-12 15:08:29 +02:00
Folkert
82c07590db
thread fx expects to the runner 2022-08-12 14:42:30 +02:00
Anton-4
d98db0828b
check if on x86 arch before doing feature detection 2022-08-12 14:07:16 +02:00
Folkert
7e6a3ddc15
more boilerplate 2022-08-12 13:50:06 +02:00
Folkert
10b6f33ed2
boilerplate 2022-08-12 13:34:36 +02:00
Anton-4
72e60bceea
valgrind fix for newer intel processors 2022-08-12 12:06:31 +02:00
Anton-4
720f02372c
use most compatible bash shebang 2022-08-12 11:45:02 +02:00
Richard Feldman
d05f9e67e7
Failed attempt 2022-08-12 00:38:19 -04:00
Richard Feldman
394cce74ef
Revert "Remove pending recursive type IDs in glue"
This reverts commit fcb174cfa0.
2022-08-11 23:53:29 -04:00
Richard Feldman
fcb174cfa0
Remove pending recursive type IDs in glue 2022-08-11 23:53:28 -04:00
Richard Feldman
d7ef42612b
Improve a variable name 2022-08-11 23:53:28 -04:00