Uh oh!
There was an error while loading. Please reload this page.
Suggest if let x = y when encountering if x = y - #75931
Merged
Merged
Conversation
estebank
commented
Aug 26, 2020
ContributorAuthor
lcnr
approved these changes
Aug 26, 2020
Uh oh!
There was an error while loading. Please reload this page.
jyn514
reviewed
Aug 28, 2020
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Detect potential cases where `if let` was meant but `let` was left out. Fixrust-lang#44990.
petrochenkov
commented
Aug 31, 2020
Contributor
@bors r+ |
bors
commented
Aug 31, 2020
Collaborator
📌 Commit 07112ca has been approved by |
bors
commented
Sep 1, 2020
Collaborator
bors
commented
Sep 1, 2020
Collaborator
☀️ Test successful - checks-actions, checks-azure |
matthiaskrgr added a commit
to matthiaskrgr/rust
that referenced
this pull request
Jan 3, 2022
Suggest while let x = y when encountering while x = y Extends rust-lang#75931 to also detect where the `let` might be missing from `while let` expressions.
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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Detect potential cases where
if letwas meant butletwas left out.Fix#44990.