rustc book does not specify priority between lint options like -A
and attributes
#124088
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
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.
The text was updated successfully, but these errors were encountered: