descriptor: reject empty enums - #421
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
[claude code] Matches protoc (
And as on the sibling PRs: please drop the edit to the |
# Conflicts: # buffa-descriptor/src/pool.rs
… in the fragment The test guarding the first-value rule against an empty enum became vacuous once the pool rejects empty enums outright; it now asserts the EmptyEnum error (and still that the first-value rule is not what fires). Merged main; the DescriptorPool::new/decode error summaries keep main's wording pending a single rewrite after this series.
|
[claude code] No push since the review, so I've applied the two items myself so this can ride 0.10.0: c036353 merges |
What changed
DescriptorPoolwithPoolError::EmptyEnum.Testing
cargo test -p buffa-descriptor --all-features --all-targetscargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo fmt --all --check