-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore(net): enable rust.unnameable-types = "warn" lint #9505
chore(net): enable rust.unnameable-types = "warn" lint #9505
Conversation
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.
nice! I think we just need to move the lint to only net/
crates for now
Cargo.toml
Outdated
@@ -155,6 +155,7 @@ rust.unreachable_pub = "warn" | |||
rust.unused_must_use = "deny" | |||
rust.rust_2018_idioms = { level = "deny", priority = -1 } | |||
rustdoc.all = "warn" | |||
rust.unnameable-types = "warn" |
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.
If we are going to solve these crate-by-crate, we have to remove this:
rust.unnameable-types = "warn" |
And instead apply the lint just on the net
crates, otherwise it will not be possible to merge this until fixes for all crates are applied
@@ -155,6 +155,7 @@ rust.unreachable_pub = "warn" | |||
rust.unused_must_use = "deny" | |||
rust.rust_2018_idioms = { level = "deny", priority = -1 } | |||
rustdoc.all = "warn" | |||
# rust.unnameable-types = "warn" |
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.
remove this and add it to the Cargo.toml
of each of the crates in net
instead under [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.
yeah I don't think this is possible, I got the error when make lint
:
cannot override `workspace.lints` in `lints`, either remove the overrides or `lints.workspace = true` and manually specify the 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.
we can keep this here until we can finally enable this and continue prs crate by crate imo
Description
Partially addresses #9401
Fix
unnameable-types
warnings onnet
crate