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 special check-cfg lint config for the unexpected_cfgs lint #13913

Merged
merged 5 commits into from
May 17, 2024

Commits on May 16, 2024

  1. Allow lint config to have extra custom configs

    And report the unused manifest key warning for every key that we do not
    use, which is currently every of them.
    Urgau committed May 16, 2024
    Configuration menu
    Copy the full SHA
    1e4857a View commit details
    Browse the repository at this point in the history
  2. Add special check-cfg config for the unexpected_cfgs lint

    This permits things like this to be recognized and passed to
    rustc/rustdoc.
    
    ```rust
    [lints.rust]
    unexpected_cfgs = { level = "warn", check-cfg = ["cfg(foo)"] }
    ```
    Urgau committed May 16, 2024
    Configuration menu
    Copy the full SHA
    e6dca67 View commit details
    Browse the repository at this point in the history
  3. Dogfood tests for check-cfg config of the unexpected_cfgs lint

    Those new tests tries to be as exhaustive as possible while being
    reasonable in the number of them. To do so we try to check for
    check/doc/test/build-script/features with a the `check-cfg` config.
    
    Many of those tests are very similar to their non-config counterpart.
    Urgau committed May 16, 2024
    Configuration menu
    Copy the full SHA
    3335a6d View commit details
    Browse the repository at this point in the history
  4. Move malformatted check-cfg config warning to error

    since it's always backwards compatible to go from error to warn, but not
    the inverse.
    Urgau committed May 16, 2024
    Configuration menu
    Copy the full SHA
    980afaa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5e9ac4b View commit details
    Browse the repository at this point in the history