-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc-valid-idents
not respected in Cargo.toml [lints] table
#11751
Comments
Lints in Rust can be controlled and customized using the |
Hi @Stoned33, thanks for your reply. While that does work per crate, other lints work with overriding them in the Cargo.toml as in my example, although I do notice it only seems to work when it's only the bare level key. For example, this works as expected, to allow denying the pedantic group with an exception, since the order matters in the file [lints.clippy]
pedantic = "deny"
borrow_as_ptr = "allow" |
Isn't lint extra configuration supposed to be given in doc-valid-idents = ["GHz", ".."] it should do what you want. |
Opened a cargo issue for this: rust-lang/cargo#12917 |
Add `lint_groups_priority` lint Warns when a lint group in Cargo.toml's `[lints]` section shares the same priority as a lint. This is in the cargo section but is categorised as `correctness` so it's on by default, it doesn't call `cargo metadata` though and parses the `Cargo.toml` directly The lint should be temporary until rust-lang/cargo#12918 is resolved, but in the meanwhile this is an common issue to run into - #11237 - #11751 - #11830 changelog: Add [`lint_groups_priority`] lint r? `@flip1995`
Summary
See title
Reproducer
I tried this code:
//! GHz
I expected to see this happen:
A clean build
Instead, this happened:
I still see the error on the
GHz
in my doc commentVersion
Additional Labels
No response
The text was updated successfully, but these errors were encountered: