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

🐛 zd: Don't assume enum discriminant to be always a literal #1245

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

zeenix
Copy link
Contributor

@zeenix zeenix commented Feb 4, 2025

Otherwise, we end up not accepting negative values for enum discriminants because syn parses them as Expr::Unary. Same for binary operations (e.g 1 << 2).

Otherwise, we end up not accepting negative values for enum discriminants
because `syn` parses them as `Expr::Unary`. Same for binary operations
(e.g `1 << 2`).
@zeenix zeenix enabled auto-merge February 4, 2025 16:48
@zeenix zeenix merged commit c0fbcb5 into dbus2:main Feb 4, 2025
8 checks passed
@zeenix zeenix deleted the value-enums branch February 4, 2025 16:57
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.

1 participant