Skip to content

Only first cap-lints argument is used #54282

Open
@Mark-Simulacrum

Description

@Mark-Simulacrum

rustc --cap-lints=warn --cap-lints=foo should give an error on the invalid "foo" passed, but currently this does nothing.

It is not completely clear what exact behavior we want on --cap-lints=allow --cap-lints=forbid for example, though.

Currently this means that there's no way to override Cargo's default behavior on dependencies via RUSTFLAGS, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerA-frontendArea: Compiler frontend (errors, parsing and HIR)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions