bitflags 2.3.0 breaks flags that refer to constants in separate impl blocks via Self #353
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags#353
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
The short of it is that the code below compiles with bitflags 2.2.1 but fails to compile with bitflags 2.3.0.
The error message emitted by rustc, in case it helps.
I'm not sure how niche this pattern is but it did break the
perf-event-datacrate.Thanks for the report @Phantomical! This looks like a regression in that we now add flags to both the overall type and the internally generated one, so
Selfrefers to a different type in those cases. We should fix that up by not implementing theFlagstrait on that internally generated type and working around any places we expect it.