Pranav Gaddamadugu
cc121171b3
chore(leo): bump version for new release
2024-11-19 16:06:21 -08:00
Pranav Gaddamadugu
ec67f3d0cc
Regen expectations
2024-11-14 16:11:30 -08:00
Pranav Gaddamadugu
87072d7958
Fix and pass tests
2024-11-14 15:19:41 -08:00
Pranav Gaddamadugu
f27d1573a2
Fix and regen some expectations
2024-11-14 07:23:34 -08:00
d0cd
1e31a9045a
Merge pull request #28433 from ProvableHQ/shadowing
...
Disallow local variables from shadowing functions, structs, mappings,…
2024-11-06 18:54:50 -08:00
Michael Benfield
b66db0329e
Parse error on identifiers that are too long.
...
SnarkVM requires that identifiers fit in a field
element.
2024-11-06 08:32:26 -08:00
Michael Benfield
003383762d
Disallow local variables from shadowing functions, structs, mappings, etc.
2024-11-05 12:17:55 -08:00
Michael Benfield
4afc757216
Update MSRV in all the other crates to match.
2024-11-04 13:24:00 -08:00
Pranav Gaddamadugu
819fa2f6d9
Merge branch 'mainnet' into ci/integration-tests-to-circle-ci
2024-11-01 09:35:37 -07:00
d0cd
1a2e5d9473
Merge pull request #28421 from ProvableHQ/toml-output
...
Don't panic when outputting TOML arrays in test failures.
2024-10-23 16:51:04 -07:00
Pranav Gaddamadugu
94dab70da8
Update deps
2024-10-23 13:30:50 -07:00
Michael Benfield
0a5a6985f1
Handle closures that are invalid for Aleo.
...
In particular,
1. Insert a dummy instruction for empty closures
and finalizers. SnarkVM won't parse these with no instructions.
2. Give an error for Leo functions with
no parameters (rather than just generating
an invalid Aleo closure).
Fixes #28401
2024-10-23 12:03:12 -07:00
Michael Benfield
322f2f7ce4
Don't panic when outputting TOML arrays in test failures.
...
TOML can't serialize arrays as the top level type.
Some of our test cases have TOML arrays as expected output.
Thus sometimes failed tests will panic when trying to report
expected and found output. Instead, we now manually "serialize"
TOML arrays.
2024-10-23 10:31:14 -07:00
Pranav Gaddamadugu
fa0b3ffff7
Clean up docs workflow
2024-10-22 18:12:22 -07:00
Michael Benfield
da8ef9b779
Consistently make 1 empty line between output items in codegen.
2024-10-21 17:00:21 -07:00
Michael Benfield
b4f28bf692
Don't hash bytecode output for tests.
2024-10-21 16:19:31 -07:00
Michael Benfield
6694e058c4
Switch to TOML for tests instead of YAML.
2024-10-21 16:08:46 -07:00
d0cd
64445fb113
Merge pull request #28404 from ProvableHQ/remove-expectations
...
Remove unused '.out' expectations files.
2024-10-20 14:03:43 -07:00
Michael Benfield
8863974fea
Remove unused '.out' expectations files.
...
A couple of these seem to have been inadvertently left behind
in switching away from the finalize syntax. Others never had a
corresponding '.leo' test.
2024-10-17 16:01:01 -07:00
Michael Benfield
5e7591fec9
Improve handling of guards while flattening.
...
Specifically three changes are made:
1. Cache Anded together chains of conditionals for early returns.
This prevents quadratic code being generated in the face of a chain
of ifs like
```
if a { return 0u32; } else if b { return 1u32 } else if ...
```
2. Take into account early returns for asserts, and cache the
when reconstructing the assert, as with caching them for early returns.
Fixes #28386 , #28387
2024-10-17 10:03:08 -07:00
Michael Benfield
a55dfe29e8
Clean up dependencies.
...
Remove unused deps. Use workspace deps where appropriate.
2024-10-10 12:56:17 -07:00
Michael Benfield
5a0f39cd9f
hex, octal, and binary literals for integers.
...
Note that they can't be used on the command line since SnarkVM
does the parsing there.
2024-10-10 08:26:58 -07:00
Michael Benfield
9ea9aeb9c8
Require comma separators (and nothing else) between struct members.
...
Fixes #28377 , #28379
2024-10-09 14:47:40 -07:00
Michael Benfield
2bbff6d0a8
Display Type::Boolean as bool
, not boolean
.
...
Leo calls this `bool`, so it's potentially confusing when error
messages say `boolean`.
2024-10-04 15:43:52 -07:00
d0cd
94579410c4
Merge pull request #28373 from ProvableHQ/issue-28370-resolve
...
Add function inputs to the type table.
2024-10-04 07:50:38 +08:00
d0cd
0dea30b3de
Merge pull request #28359 from ProvableHQ/dependabot/cargo/mainnet/regex-1.11.0
...
Bump regex from 1.10.6 to 1.11.0
2024-10-04 07:29:58 +08:00
Michael Benfield
f283ff2671
Address clippy lints.
2024-10-03 13:18:19 -07:00
Michael Benfield
2919f0bfd0
Add function inputs to the type table.
...
Fixes #28370
2024-10-03 11:45:49 -07:00
dependabot[bot]
a79a454751
Bump regex from 1.10.6 to 1.11.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.6 to 1.11.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.6...1.11.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 15:10:56 +00:00
Pranav Gaddamadugu
174dae47db
Update rustfmt.toml to latest nightly and apply changes
2024-10-01 18:19:39 -07:00
Pranav Gaddamadugu
d746c427cc
chore(leo): bump version for new release
2024-09-19 08:00:35 +08:00
dependabot[bot]
5369fa3550
Bump backtrace from 0.3.73 to 0.3.74
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.73 to 0.3.74.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.73...0.3.74 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 10:32:44 +00:00
Pranav Gaddamadugu
82eba55f8d
chore(leo): bump version for new release
2024-09-04 15:18:01 -07:00
Pranav Gaddamadugu
819bee3aa7
Update tests
2024-09-04 12:43:37 -07:00
Pranav Gaddamadugu
7dfecd41b1
Update LicenseHeader and Cargo metadata
2024-09-04 11:48:02 -07:00
evan-schott
dcf98c4fb0
Add test
2024-08-09 19:33:32 -07:00
Pranav Gaddamadugu
acb7b61feb
chore(leo): bump version for new release
2024-08-07 01:10:09 -04:00
Pranav Gaddamadugu
140a04072d
chore(leo): bump version for new release
2024-07-08 13:53:16 -07:00
evan-schott
ec3c92b4bf
add nested external record test
2024-07-08 12:11:23 -07:00
evan-schott
edb3c8ea16
Merge pull request #28198 from ProvableHQ/fix/parser-error-data
...
Fix expected list in parser error.
2024-07-08 11:41:36 -07:00
Alessandro Coglio
9639c5b1c1
Adjust some text expectations.
2024-07-08 09:48:50 -07:00
Pranav Gaddamadugu
6404d22b09
Fix
2024-07-02 18:10:54 -07:00
d0cd
e8c31833aa
Merge pull request #28085 from ProvableHQ/dependabot/cargo/mainnet/backtrace-0.3.73
...
Bump backtrace from 0.3.72 to 0.3.73
2024-06-12 13:17:59 -07:00
evan-schott
d725f37fdd
add test
2024-06-12 11:06:13 -07:00
dependabot[bot]
bd1c293123
Bump backtrace from 0.3.72 to 0.3.73
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.72 to 0.3.73.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.72...0.3.73 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 10:36:54 +00:00
Pranav Gaddamadugu
7584fa7919
Regenerate expectations
2024-06-08 17:42:37 -07:00
Pranav Gaddamadugu
baabbe512f
Add failing test case
2024-06-08 17:40:47 -07:00
dependabot[bot]
cfb3f3c0c7
Bump backtrace from 0.3.71 to 0.3.72
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.71 to 0.3.72.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.71...0.3.72 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-29 10:18:46 +00:00
evan-schott
1934a23eb2
add test
2024-05-20 13:49:33 -07:00
Pranav Gaddamadugu
f75904710d
Fix
2024-05-14 18:05:03 -07:00