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

Don't lint while_let_loop when significant drop order would change #8666

Merged
merged 2 commits into from
Jun 30, 2022

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Apr 8, 2022

fixes #7226
fixes #7913
fixes #5717

For #5717 it may not stay fully fixed. This is only completely fixed right now due to all the allowed drop impls have #[may_dangle] on their drop impls. This may get changed in the future based on how significant drops are determined, but the example listed with RefCell shouldn't break.

changelog: Don't lint while_let_loop when the order of significant drops would change

@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 8, 2022
@Jarcho Jarcho changed the title While let loop 7913 Don't lint while_let_loop when significant drop order would change Apr 8, 2022
@bors
Copy link
Collaborator

bors commented Apr 13, 2022

☔ The latest upstream changes (presumably #8647) made this pull request unmergeable. Please resolve the merge conflicts.

@dswij
Copy link
Member

dswij commented Jun 23, 2022

r? @dswij

@rust-highfive rust-highfive assigned dswij and unassigned camsteffen Jun 23, 2022
Copy link
Member

@dswij dswij left a comment

Choose a reason for hiding this comment

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

This looks great, thanks for the changes!

@dswij
Copy link
Member

dswij commented Jun 29, 2022

Looks like there's some conflicts, and after that I think this is good to merge

@dswij
Copy link
Member

dswij commented Jun 30, 2022

Thanks! @bors r+

@bors
Copy link
Collaborator

bors commented Jun 30, 2022

📌 Commit adbc849 has been approved by dswij

@bors
Copy link
Collaborator

bors commented Jun 30, 2022

⌛ Testing commit adbc849 with merge 88591ba...

@bors
Copy link
Collaborator

bors commented Jun 30, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: dswij
Pushing 88591ba to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
5 participants