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

[significant_drop_tightening] Add #11125 test #11131

Closed
wants to merge 1 commit into from

Conversation

c410-f3r
Copy link
Contributor

@c410-f3r c410-f3r commented Jul 9, 2023

Fix #11125


changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Jul 9, 2023

r? @xFrednet

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 9, 2023
@xFrednet
Copy link
Member

r% @blyxyas

(xFrednet has picked a reviewer for you, use r% to override)

Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

Could you simplify this? We only need sender_wakers (or a Mutex<Vec<Waker>>), the test doesn't need a lot of the original block to still be effective (e.g. the initial if stmt. or SendValue)

@c410-f3r
Copy link
Contributor Author

Is it really necessary to trim-down a self-contained use-case provided by a user of this lint?

@blyxyas
Copy link
Member

blyxyas commented Jul 12, 2023

If #11128 fixed the initial problem with #11125 and the current CI (checking for the 100% faithful usecase) is successful, I think we can simplify it. Future-proofing each PR merged by adding the real usecase that caused the problem isn't something viable.

@c410-f3r
Copy link
Contributor Author

I see. Thank you

@blyxyas
Copy link
Member

blyxyas commented Jul 12, 2023

But looking at the current tests/ui/significant_drop_tightening.rs, it seems like a simplified test was provided in #11129. I'm not sure how to proceed here.

@xFrednet
Copy link
Member

But looking at the current tests/ui/significant_drop_tightening.rs, it seems like a simplified test was provided in #11129. I'm not sure how to proceed here.

Is my understanding correct, that this PR only adds a test and that a simpler example of the same problem has been added in #11129?

If this test doesn't check a different behavior or variant of one, I'd suggest closing the PR. If it's a variant, that checks something slightly different, it would be good to merge it. Merging it either way would not be wrong :)

@bors
Copy link
Collaborator

bors commented Jul 20, 2023

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

@blyxyas
Copy link
Member

blyxyas commented Jul 21, 2023

Well, I think we'll do an exception this time. @c410-f3r, could you fix the conflicting files? 🤠

@blyxyas
Copy link
Member

blyxyas commented Aug 4, 2023

just a little mini-ping
@c410-f3r

@c410-f3r
Copy link
Contributor Author

c410-f3r commented Aug 7, 2023

Thank you for the heads-up.

Unfortunately, I don't have the motivation to continue pursuing this issue.

@c410-f3r c410-f3r closed this Aug 7, 2023
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
Development

Successfully merging this pull request may close these issues.

Incorrect suggestion for significant-drop-tightening
5 participants