New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change array type syntax to Array<u8, 100> #571
Conversation
Trying to figure out how to get the CI checks to run. Ignore the "ready for review" toggle I just flipped. |
I can't figure it out. GH actions are set to not run automatically on PRs from first-time contributors, but normally there's a button to click to run the actions. Maybe it's not showing because of the unresolved conflict? BTW, the CI checks will reject code that's not formatted with |
Yeah, the build won't run for PRs with conflicts. |
I just noticed a relevant bit of code that you may or may not have discovered yet, in fe/crates/analyzer/src/traversal/expressions.rs Lines 979 to 981 in e9c1ee1
With the new array syntax in place, code like this will now panic:
I don't really care whether we support this right now (the |
088e894
to
d010ada
Compare
@sbillig I resolved the issues you noted, squashed my commits, and rebased onto master. For the Array type constructor case in |
@Maltby looks great! The failing
Some background: if the parser emits an error but doesn't fail (which it should do if it's able to construct a valid ast despite the error), then the analyzer will run on the resulting ast. The analyzer is producing the type errors above. So, there are two ways to solve this:
I'd be fine with option 1. Sometime in the future, when the old array syntax is sufficiently old, we may just delete the code that tries to detect it anyway. (Same goes for the code that checks for the old Regarding the "lint" failure, that's a weakness in our Change this line fe/docs/validate_doc_examples.py Line 26 in d010ada
clone_function.md_b5723756c9f8ecc9364a6a871a161dcb4607f2a3.fe and that error will be cleared up. Someone can make this more robust in a future PR.
|
@sbillig I think I'll give option 2 a whirl, seems doable enough. I'll take care of that, add some tests, fix the lint failure, and let you know when that's all done. Thanks for all your help with this! |
fbf9b93
to
19f4c2d
Compare
19f4c2d
to
7ef7c21
Compare
@Maltby Looks great! I pushed a couple commits (
Thanks for doing all of this! I'll merge when the checks finish running. |
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
==========================================
- Coverage 88.25% 88.17% -0.09%
==========================================
Files 87 87
Lines 7076 7101 +25
==========================================
+ Hits 6245 6261 +16
- Misses 831 840 +9
Continue to review full report at Codecov.
|
What was wrong?
#273
How was it fixed?
To-Do
OPTIONAL: Update Spec if applicable
Add entry to the release notes (may forgo for trivial changes)
Clean up commit history