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

Add a new lint for catching unbound lifetimes in return values #4908

Closed
wants to merge 1 commit into from

Commits on Jan 10, 2020

  1. Add a new lint for catching unbound lifetimes in return values

    This lint is based on some unsoundness found in Libra during security
    audits. Some function signatures can look sound, but based on the concrete
    types that end up being used, lifetimes may be unbound instead of anchored to
    the references of the arguments or the fields of a struct. When combined with
    unsafe code, this can cause transmuted lifetimes to be not what was intended.
    metajack committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    80d2f78 View commit details
    Browse the repository at this point in the history