Skip to content

rustc book does not specify priority between lint options like -A and attributes #124088

Open
@sourcefrog

Description

@sourcefrog

Location

https://doc.rust-lang.org/rustc/lints/levels.html

Summary

This page describes that you can configure the allow/warn/deny/etc level of various lints or groups using attributes and command-line options.

It does not currently specify whether options have priority above or below in-code attributes, and I think it would be helpful if it did.

If you like, I can look at what the current behavior is and send a PR documenting it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language 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