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

Fix future rustc lint rule on named lifetime elision (backport #13197) #13199

Merged
merged 1 commit into from
Sep 20, 2024

Commits on Sep 20, 2024

  1. Fix future rustc lint rule on named lifetime elision (#13197)

    This commit fixes a future lint rule that will appear in future version
    of the rust compiler. The new rule will raise a warning at compile time
    if the code used an elided lifetime resolves to a named lifetime. While
    this typically would only cause an issue in unsafe rust, it can cause a
    confusing error message in cases when using functions like this in a
    safe context. This fixes the code violating this future rule to get
    ahead of any potential errors when compiling with a release of Rust from
    the near future.
    
    This rule is documented here:
    
    https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/builtin/static.ELIDED_NAMED_LIFETIMES.html
    (cherry picked from commit 12ecea7)
    mtreinish authored and mergify[bot] committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    91629df View commit details
    Browse the repository at this point in the history