Skip to content
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

Merged
merged 4 commits into from
Jul 16, 2024

Conversation

TropicalDog17
Copy link
Contributor

Description

Partially addresses #9401

Fix unnameable-types warnings on net crate

@TropicalDog17 TropicalDog17 changed the title chore(net): enable rust.unnameable-types = "warn" lint. chore(net): enable rust.unnameable-types = "warn" lint Jul 15, 2024
Copy link
Member

@Rjected Rjected left a 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"
Copy link
Member

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:

Suggested change
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"
Copy link
Member

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]

Copy link
Contributor Author

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

Copy link
Collaborator

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

@mattsse mattsse added this pull request to the merge queue Jul 16, 2024
Merged via the queue into paradigmxyz:main with commit e6f2dca Jul 16, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants