-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add unknown-lints
lint
#13639
Add unknown-lints
lint
#13639
Conversation
{ | ||
if let Some(cargo_lints) = lints.get("cargo") { | ||
for (name, _) in cargo_lints.iter() { | ||
let normalized_name = name.replace("-", "_"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is having me lean more towards normalizing earlier in the process
if let Some(lints) = original_toml | ||
.workspace | ||
.as_ref() | ||
.map_or(&None, |ws| &ws.lints) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo this should be treated as a separate "workspace" lint that is only subject to workspace.lints
so we have consistency between virtual and real workspace packages.
@@ -763,7 +763,6 @@ fn cargo_lints_nightly_required() { | |||
authors = [] | |||
|
|||
[lints.cargo] | |||
"unused-features" = "deny" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why were these here and why are they being removed?
☔ The latest upstream changes (presumably #13740) made this pull request unmergeable. Please resolve the merge conflicts. |
r? epage |
Going to close in favor of #13837, as it contains the addition of an |
This PR adds a lint for
unknown-lints
similarrustc::unknown-lints
. This will help users know when they are passing something tocargo
thatcargo
doesn't understand.