Skip to content

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

@ThierryBerger ThierryBerger 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

@ThierryBerger ThierryBerger 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