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

Refactor attribute filtering to apply per-flag #345

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Apr 24, 2023

Closes #343
Closes #344

In blackbeam/rust_mysql_common#87, it was pointed out that the new attribute filtering added in #341 causes large flags declarations to hit the default 128-deep recursion limit. I've refactored that code now so that instead of filtering all attributes on all flags upfront, it filters attributes on each flag individually at the points we need them. This reduces the stack depth by the most complex individual flag, rather than the sum of all flags.

@KodrAus KodrAus merged commit 638707f into bitflags:main Apr 24, 2023
15 checks passed
@KodrAus KodrAus deleted the fix/recursion branch April 24, 2023 04:51
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.

Bitflags reverses order of multiline doc comments bitflags v2.2 incompatibility with mysql_common
1 participant