Skip to content

Warnings about removed lints may want to itself become a lint #31141

Closed
@alexcrichton

Description

@alexcrichton

Right now the warnings about a removed lint is a full-fledged warning in the compiler, which primarily means that it is not affected by --cap-lints allow. Note that -A warnings does indeed suppress the warning, but Cargo no longer pases -A warnings.

This ends up meaning that if you just updated to Rust 1.6 (where raw_pointer_derive was removed) and recompile your project, you're actually pretty likely to get tons of these warnings from all your upstream dependencies. (although you yourself are unlikely to have allow(raw_pointer_derive). Ideally these warnings would behave like other lint warnings in Cargo, which is that they are ignored in dependencies by default (e.g. suppressed via --cap-lints allow).

cc @wycats (reporter)
cc @brson (implementor)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions