-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Prevent clippy::needless_lifetimes false positive in async function definition #7901
Conversation
r? @xFrednet (rust-highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍. I'm not quite sure how these OpaqueDef
types are used inside rustc, I'll therefore ask some team members to double-check this PR 🙃
According to the documentation of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the further explanation. This LGTM. There's a small NIT with the test.
Edition needs to be set to 2018 due to the use of `async`.
665f1e9
to
9bcf966
Compare
@bors r=xFrednet,flip1995 Thanks! |
📌 Commit 9bcf966 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Scan
OpaqueDef
bounds for lifetimes as well. ThoseOpaqueDef
instances are generated while desugaring anasync
function definition.This fixes #7893
changelog: Prevent [
clippy::needless_lifetimes
] false positive inasync
function definition