-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[let_chains, 2/6] Introduce Let(..)
in AST, remove IfLet + WhileLet and parse let chains
#60861
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
35 commits
Select commit
Hold shift + click to select a range
42accc9
let_chains: Remove ast::ExprKind::{IfLet, WhileLet} and introduce ::Let.
Centril f0ab633
let_chains: Remove ast::ExprKind::{IfLet, WhileLet} from visitors and…
Centril 3fc9642
let_chains: Handle it in AST pretty printing.
Centril dff1e37
let_chains: Add support for parsing let expressions.
Centril 70a65e9
let_chains: Handle in resolve.
Centril fcffac5
let_chains: Handle in unused parenthesis lint.
Centril a7b00f5
let_chains: Handle disallowing of let chains in places lowering won't…
Centril c9fb639
let_chains: Adjust lowering logic in lieu of ::Let.
Centril ebea1c2
let_chains: Add feature gate.
Centril 357b499
let_chains: Add tests for places where let expressions aren't allowed.
Centril c0c5791
let_chains: Add feature gate tests.
Centril 6a6b079
let_chains: Adjust unnecessary parens tests.
Centril d45dadd
let_chains: Add test protecting the precedence of && in relation to o…
Centril b425df0
let_chains: Remove redundant tests in syntax-ambiguity-*.rs.
Centril 530f954
let_chains: Test pretty output for simple stable if-let.
Centril 86250a6
let_chains: Comment out Let in ident_can_begin_expr.
Centril 8b72e4c
let_chains: Improve documentation for ast::ExprKind::Let(..).
Centril 3b7f0cb
let_chains: Fix outdated doc-comment re. 'parse_if_expr'.
Centril 1ff947f
let_chains: scrutinee -> head expression.
Centril a80aa34
let_chains: Change AST validation strategy slightly.
Centril 07f37c8
let_chains: Account for const generics in validation tests.
Centril a505d9d
let_chains: scrutinee -> condition
Centril 61fc727
let_chains: Fuse PatternSource::Let & ::LetExpr.
Centril 92587e4
let_chains: readd kw::let to ident_can_begin_expr.
Centril d551880
let_chains: Inline visit_expr_with_let_maybe_allowed.
Centril eb4f54a
let_chains: Move feature gating to pre-expansion.
Centril 10234d2
let_chains: Adjust tests for pre-expansion gating.
Centril 2017be4
let_chains: Remove ast_validation logic in favor of lowering with rec…
Centril 5ae5086
let_chains: --bless tests due to recovery in lowering.
Centril 7465eb4
let_chains: Refactor parse_{if,while}_expr a bit.
Centril 851066f
let_chains: Fix bugs in pretty printing.
Centril bc72ce6
let_chains: Add test cases to pprust-expr-roundtrip.
Centril 90b9e96
let_chains: More accurately describe `ast::ExprKind::Let`.
Centril 7abb235
let_chains: Revert 'fn with' in ast_validation.
Centril c75f7ec
let_chains: note re. back-compat wrt. expr beginning.
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
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.