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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a top-level macro for filtering attributes #341

Merged
merged 2 commits into from
Apr 19, 2023

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Apr 18, 2023

Closes #308

This PR re-introduces a macro that filters attributes so that only cfgs are applied on expressions that use flags constants. I noticed we already have the limitation that attributes must be plain identifiers, so attributes like #[some::path] already don't work on flags constants themselves.

I'd appreciate a sanity check of this macro if anyone is keen 馃檪 Especially if there's any better way to document what's going on or make the thing more compact so we can easily add any more attributes that we need to propagate without the whole thing becoming impossible to follow.

@KodrAus KodrAus merged commit 780f456 into bitflags:main Apr 19, 2023
15 checks passed
@KodrAus KodrAus deleted the fix/doc-alias branch April 19, 2023 11:46
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.

Cannot use #[doc(alias)]
1 participant