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

Do not look for significant drop inside .await expansion #13985

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

samueltardieu
Copy link
Contributor

Temporaries created inside the expansion of .await will be dropped and need no checking. Looking inside the expansion will trigger false positives.

changelog: [significant_drop_in_scrutinee]: do not falsely warn for temporaries created by .await expansion

Fix #13927

Temporaries created inside the expansion of `.await` will be dropped and need
no checking. Looking inside the expansion will trigger false positives.
@rustbot
Copy link
Collaborator

rustbot commented Jan 11, 2025

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 11, 2025
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.

Thanks!

@dswij dswij added this pull request to the merge queue Jan 14, 2025
Merged via the queue into rust-lang:master with commit 8c1ea9f Jan 14, 2025
11 checks passed
@samueltardieu samueltardieu deleted the push-kumsxsxnouky branch January 14, 2025 09:41
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.

significant_drop_in_scrutinee fires when matching on async function result
3 participants