-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
unused_assignments lint false positive #22630
Comments
Triage: no change |
Bumping: This issue has not yet been fixed. |
Is this bug easy to fix? i would love to help, but have no idea where to start :) Thanks! |
@yuval-k You can search the codebase for |
Just hit this today, still an issue. |
…ebank Fix unused_assignments false positive Fixes rust-lang#22630. In liveness analysis, make `continue` jump to the loop condition's `LiveNode` (`cond` as in comment) instead of the loop's one (`expr`). https://github.com/rust-lang/rust/blob/069b0c410808c1d1d33b495e048b1186e9f8d57f/src/librustc/middle/liveness.rs#L1358-L1370
The following code produces an
unused_assignment
warning (playground):The text was updated successfully, but these errors were encountered: