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

Don't make tools responsible for checking unknown and renamed lints #80524

Merged
merged 4 commits into from
Jan 17, 2021

Commits on Jan 15, 2021

  1. Don't make tools responsible for checking unknown and renamed lints

    Previously, clippy (and any other tool emitting lints) had to have their
    own separate UNKNOWN_LINTS pass, because the compiler assumed any tool
    lint could be valid. Now, as long as any lint starting with the tool
    prefix exists, the compiler will warn when an unknown lint is present.
    jyn514 committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    5053db7 View commit details
    Browse the repository at this point in the history
  2. Don't mark ineffective_unstable_trait_impl as an internal lint

    It's not an internal lint:
    - It's not in the rustc::internal lint group
    - It's on unconditionally, because it actually lints `staged_api`, not
      the compiler
    
    This fixes a bug where `#[deny(rustc::internal)]` would warn that
    `rustc::internal` was an unknown lint.
    jyn514 committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    c819a4c View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2021

  1. More advanced unknown lint suggestion

    This copies the unknown_lints code clippy uses for its
    unknown_clippy_lints lint to rustc. The unknown_clippy_lints code is
    more advanced, because it doesn't suggest renamed or removed lints and
    correctly suggest lower casing lints.
    flip1995 committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    5e3df42 View commit details
    Browse the repository at this point in the history
  2. Deprecate unknown_clippy_lints

    This is now handled by unknown_lints
    flip1995 committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    13728b8 View commit details
    Browse the repository at this point in the history