Skip to content

Add an all_named ctor for filtering out catch-all flags#484

Merged
KodrAus merged 4 commits into
mainfrom
feat/all_named
May 29, 2026
Merged

Add an all_named ctor for filtering out catch-all flags#484
KodrAus merged 4 commits into
mainfrom
feat/all_named

Conversation

@KodrAus

@KodrAus KodrAus commented May 29, 2026

Copy link
Copy Markdown
Member

Closes #443

This PR introduces a Flags::all_named constructor that can filter out the catch-all _: !0 flag used by external flags types. It's almost worth adding it as an inherent const function to the target flags type too, but we can't do that without risking breakage unfortunately.

@KodrAus KodrAus merged commit e94eb94 into main May 29, 2026
20 checks passed
@KodrAus KodrAus deleted the feat/all_named branch May 29, 2026 12:25
swananan added a commit to swananan/aya that referenced this pull request Jun 2, 2026
bitflags 2.12 adds Flags::all_named(), which shows up in clean CI
public API output for VerifierLogLevel.

bitflags/bitflags#484
tamird pushed a commit to aya-rs/aya that referenced this pull request Jun 2, 2026
bitflags 2.12 adds Flags::all_named(), which shows up in clean CI
public API output for VerifierLogLevel.

bitflags/bitflags#484
MaximeWewer pushed a commit to MaximeWewer/aya that referenced this pull request Jun 9, 2026
bitflags 2.12 adds Flags::all_named(), which shows up in clean CI
public API output for VerifierLogLevel.

bitflags/bitflags#484
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.

How to truncate if const _ = !0; was used

1 participant