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

Don't emit unexpected cfgs in proc-macros #4284

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Nov 20, 2024

This issue has been caused by recent changes in nightly: rust-lang/rust#132577. unexpected_cfg is now emitted from proc-macros as well.

This PR simply avoids this by checking the cfg check in the macro itself, which is required anyway to enable the corresponding unstable features.

This changes when the #[coverage] attribute is emitted by adding an internal coverage crate feature to the proc-macro and their utility crates. This crate feature is enabled by wasm-bindgen and wasm-bindgen-test when cfg(wasm_bindgen_unstable_test_coverage) is enabled.

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.

2 participants