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

Disallow duplicate bindings of struct fields #10776

Merged
merged 1 commit into from
Dec 4, 2013

Conversation

alexcrichton
Copy link
Member

Closes #9725

bors added a commit that referenced this pull request Dec 4, 2013
@bors bors closed this Dec 4, 2013
@bors bors merged commit 80055de into rust-lang:master Dec 4, 2013
@alexcrichton alexcrichton deleted the issue-9725 branch December 5, 2013 05:23
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2023
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2023
…archo

Fix `diverging_sub_expression` not checking body of block

Fixes rust-lang#10776

This also adds a warning to the test `ui/never_loop.rs`, not sure if this is correct or not.

changelog: [`diverging_sub_expression`]: Fix false negatives with body of block
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.

Struct destructuring allows repeated bindings of a moved variable
3 participants