Skip to content

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

@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

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-lint-levelsArea: lint levelsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions