Skip to content

Refactor attribute filtering to apply per-flag#345

Merged
KodrAus merged 2 commits intobitflags:mainfrom
KodrAus:fix/recursion
Apr 24, 2023
Merged

Refactor attribute filtering to apply per-flag#345
KodrAus merged 2 commits intobitflags:mainfrom
KodrAus:fix/recursion

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