Skip to content
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

feat: Support if- and while- let chains #11375

Merged
merged 8 commits into from
Feb 21, 2022
Merged

feat: Support if- and while- let chains #11375

merged 8 commits into from
Feb 21, 2022

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jan 30, 2022

Closes #11320.

@ChayimFriedman2 ChayimFriedman2 marked this pull request as draft January 30, 2022 01:53
@ChayimFriedman2 ChayimFriedman2 marked this pull request as ready for review February 1, 2022 09:35
@ChayimFriedman2
Copy link
Contributor Author

@Veykril What with this?

@Veykril
Copy link
Member

Veykril commented Feb 13, 2022

Will take a look at this once I get time as this is a larger PR to review

@ChayimFriedman2
Copy link
Contributor Author

Fine 😃 I just wanted to make sure this wasn't forgotten.

Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm with one small nit

crates/syntax/src/ast/node_ext.rs Outdated Show resolved Hide resolved
We still need to reject freestanding `let` expressions: see #11320 (comment).
As a side benefit, we got `let` guard support for `move_guard` for free.
Unfortunately, we lost some recovery for expressions.
Emit an error if they're found in an invalid position.
@Veykril
Copy link
Member

Veykril commented Feb 21, 2022

Thanks!
bors r+

@bors
Copy link
Contributor

bors bot commented Feb 21, 2022

@bors bors bot merged commit c67660f into rust-lang:master Feb 21, 2022
@ChayimFriedman2 ChayimFriedman2 deleted the if-while-let-chains branch February 21, 2022 18:50
bors bot added a commit that referenced this pull request Feb 27, 2022
11570: minor: Remove misleading comments r=lnicola a=ChayimFriedman2

They're not true anymore after #11375.

Co-authored-by: Chayim Refael Friedman <[email protected]>
tysg pushed a commit to tysg/rust-analyzer that referenced this pull request Mar 3, 2022
They're not true anymore after rust-lang#11375.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for let chains
2 participants