-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Implement RFC 2707 + Parser recovery for range patterns #62550
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
f7c75cc
Add 'ast::PatKind::Rest'.
Centril ff77ef2
Introduce 'ast::Pat::is_rest(&self) -> bool'.
Centril 633c997
Adjust 'ast::PatKind::{TupleStruct,Tuple,Slice}'.
Centril 12250a2
Adjust feature gating of subslice patterns accordingly.
Centril b02941f
Adjust pretty printing accordingly.
Centril 8ba5f49
Adjust and document 'Pat::to_ty' accordingly.
Centril d5df1e0
Adjust lowering of Tuple/TupleStruct patterns.
Centril 694b3c3
Adjust lowering of Slice patterns.
Centril 0a40ef2
Cleanup parse_seq_* methods + record trailing separators.
Centril 7aeb4b7
Add more parse_*_seq methods for code reuse.
Centril 7e1b671
Cleanup using the new parse_*_seq methods.
Centril 62b29a1
Adjust parsing of Slice, Tuple, TupleStruct patterns.
Centril 974413f
Recover on '..X' / '..=X' / '...X' range patterns.
Centril 2f55354
Recover on 'X..' / 'X..=' / 'X...' range patterns.
Centril 2411134
Update tests wrt. recovery of range patterns.
Centril f6c8234
And also --bless those recovery tests.
Centril 891a736
Test parsing and recovery of all sorts of range patterns.
Centril 75da43d
Use new 'p @ ..' syntax in tests.
Centril 91c8b53
--bless tests due to new subslice syntax.
Centril e725ea2
Intersection patterns 'p1 @ p2' are not supported.
Centril 06e5ae5
Account for better recovery in two cases.
Centril e3cdadd
(pat, ..,) is now syntactically legal.
Centril 7c0b1da
Win some lose some; Unfortunately we lost recovery in one case.
Centril cec8649
Update unstable book wrt. subslice patterns.
Centril 984f9db
Adjust documentation in HAIR.
Centril 1060513
Get out of bootstrapping pickle.
Centril acc6a6d
--bless tests after rebase.
Centril 59b5dae
Update error_codes.rs with new subslice syntax.
Centril 397a027
Use AstP more in lowering.
Centril becdba8
Address comments in lowering + parsing.
Centril 5f4dd1d
Address comments re. off-topic errors.
Centril 18ccd6a
Add exceptions for ExprKind::Err/TyKind::Error.
Centril 8774207
And --bless tests accordingly for those exceptions.
Centril d33696f
borrowck-describe-lvalue: --bless --compare-mode=nll.
Centril File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.