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

Prefer individual unexpected_cfgs allow over global one #638

Closed
wants to merge 2 commits into from

Conversation

Urgau
Copy link

@Urgau Urgau commented May 27, 2024

This PR replace the global #![allow(unexpected_cfgs)] over individual ones in crates/*, so that the main library still gets the benefits of the lint.

This PR also remove obsolete asmjs cfg, since that target was removed some time ago from Rust.

Copy link
Contributor

@Vrixyz Vrixyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me ; it's a pity we're losing the comment for context on the lint though

For the asmjs target drop, more context here: rust-lang/rust#117338

Copy link
Contributor

@Vrixyz Vrixyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After playing a bit with it, I'm not sure if this makes sense to keep unexpected_cfgs = "allow" at all ?

@sebcrozet
Copy link
Member

@Urgau Thank you for this PR! What is the benefit of allowing the lint in individual Cargo.toml (8 times) instead of lib.rs (only 2 times)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants