-
Notifications
You must be signed in to change notification settings - Fork 13.4k
or-patterns: Uniformly use PatKind::Or
in AST & Fix/Cleanup resolve
#64111
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
27 commits
Select commit
Hold shift + click to select a range
af06bfb
resolve: extract `resolve_params`.
Centril f8835ee
resolve: cleanup using `with_rib`, etc.
Centril 6d537d4
resolve: simplify `resolve_arm`.
Centril 219ddde
resolve: extract `try_resolve_as_non_binding`.
Centril f343e84
resolve: add `type IdentMap<T>` alias.
Centril fd3b441
resolve: move `fresh_binding`.
Centril dc91e22
resolve: move `resolve_block` to a better place.
Centril 70cae78
resolve: already-bound-check: account for or-patterns.
Centril 166a558
resolve: revamp already-bound check -- fix some bugs.
Centril 498ec59
resolve: add tests for already-bound check.
Centril 896a1c7
resolve: account for general or-patterns in consistency checking.
Centril 33317c7
resolve: add test for missing bindings in or-patterns.
Centril aa7a02b
resolve: test binding mode consistency for or-patterns.
Centril dbe6873
resolve: test consistent or-patterns being allowed.
Centril ca968a1
or-patterns: syntax: simplify `Arm.pats` and `ExprKind::Let.0`.
Centril 998060b
or-patterns: syntax: adjust `visit` and `mut_visit`.
Centril ad3db72
or-patterns: syntax: adjust parser removing a hack.
Centril 424492a
or-patterns: syntax: adjust pretty printing.
Centril 76625eb
or-patterns: syntax: adjust derive, format, and building.
Centril 3fccbac
or-patterns: adjust librustc_lint.
Centril d8ef907
or-patterns: adjust lowering of `ast::Arm` & `ast::ExprKind::Let`.
Centril a867c5f
resolve: merge `resolve_pats` and `resolve_pattern_top`.
Centril be95dee
or-patterns: adjust save_analysis wrt. `process_var_decl{_multi}`.
Centril d70b0c5
or-patterns: fix pprust-expr-roundtrip due to AST change.
Centril a7db1a4
or-patterns: address review comments.
Centril 0341b78
resolve: bool -> enum PatBoundCtx
Centril 16ba502
or-patterns: fix fallout from #664128.
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
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.