Skip to content

warnings is both a lint check and lint group #45004

Closed
@sanmai-NL

Description

@sanmai-NL

It appears impossible to deny all warnings and then warn for specific warning lint checks using rustc CLI parameters. One clear inconsistency that could be connected to this issue is that warnings is both a ‘lint check’ and a ‘lint group’.

rustc -W help
Lint checks provided by rustc:


                                         name  default  meaning
                                         ----  -------  -------
...
                                     warnings  warn     mass-change the level for lints which produce warnings
...
Lint groups provided by rustc:

                   name  sub-lints
                   ----  ---------
               warnings  all built-in lints

Meta

rustc 1.22.0-nightly (185cc5f26 2017-10-02)

Activity

added
C-enhancementCategory: An issue proposing an enhancement or a PR with one.
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.
on Oct 3, 2017
zackmdavis

zackmdavis commented on Oct 4, 2017

@zackmdavis
Member
RalfJung

RalfJung commented on Aug 18, 2020

@RalfJung
Member

Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @RalfJung@zackmdavis@TimNN@sanmai-NL

        Issue actions

          `warnings` is both a lint check and lint group · Issue #45004 · rust-lang/rust