#![feature(..)]
outside of crate root only warns and should be louder
#134856
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
L-unused_attributes
Lint: unused_attributes
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When a
feature
attribute is declared anywhere but the crate root, we currently emit an unused attribute warning:This has caused issues in the past with people not realizing that the attribute wasn't set in the right place. It should probably be its own error/deny-by-default lint, specifically for
feature
.The text was updated successfully, but these errors were encountered: