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

Skip single use lifetime lint for generated opaque types #88650

Merged
merged 2 commits into from
Sep 18, 2021

Commits on Sep 4, 2021

  1. Skip single use lifetime lint for generated opaque types

    As reported in issue rust-lang#77175, the opaque type generated by the desugaring process of an async function uses the lifetimes defined by the originating function. The definition ID for the lifetimes in the opaque method is different from the one in the originating async function and it could therefore be considered a single use of the lifetimne, this causes the single_use_lifetimes lint to fail compilation if explicitly denied. This fix skips the lint for lifetimes used only once in generated opaque types for an async function that are declared in the parent async function definition.
    sapessi committed Sep 4, 2021
    Configuration menu
    Copy the full SHA
    82f1f50 View commit details
    Browse the repository at this point in the history
  2. test for issue rust-lang#77175

    sapessi committed Sep 4, 2021
    Configuration menu
    Copy the full SHA
    0696c28 View commit details
    Browse the repository at this point in the history