Skip to content

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

Merged
bors merged 2 commits intorust-lang:masterfrom
Jarcho:while_let_loop_7913
Jun 30, 2022
Merged

Don't lint while_let_loop when significant drop order would change#8666
bors merged 2 commits intorust-lang:masterfrom
Jarcho:while_let_loop_7913

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 force-pushed the while_let_loop_7913 branch from 91e4214 to b627856 Compare April 8, 2022 19:00
@Jarcho Jarcho changed the title While let loop 7913 Don't lint while_let_loop when significant drop order would change Apr 8, 2022
@Jarcho Jarcho force-pushed the while_let_loop_7913 branch from b627856 to b5bffbb Compare April 8, 2022 23:18
@bors
Copy link
Contributor

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

@Jarcho Jarcho force-pushed the while_let_loop_7913 branch from b5bffbb to e48c92a Compare June 29, 2022 17:00
@Jarcho Jarcho force-pushed the while_let_loop_7913 branch from e48c92a to adbc849 Compare June 29, 2022 17:43
@dswij
Copy link
Member

dswij commented Jun 30, 2022

Thanks! @bors r+

@bors
Copy link
Contributor

bors commented Jun 30, 2022

📌 Commit adbc849 has been approved by dswij

@bors
Copy link
Contributor

bors commented Jun 30, 2022

⌛ Testing commit adbc849 with merge 88591ba...

@bors
Copy link
Contributor

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