Re: [PATCH 1/3] scripts/qapi: enum with conditional first item must be optional
Markus Armbruster <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
Paolo Bonzini <[email protected]> writes: > On Thu, Aug 6, 2026 at 9:01 AM Markus Armbruster <[email protected]> wrote: [...] >> If forbidding empty enums makes Rust generation simpler or easier, >> that's a compelling reason, isn't it? >> >> You should mention the Rust reason(s) in the commit message then. > > Rust can live with it. I'm just taking a clue from the language. No objection. >> I might have banned conditional first members from the start if I had >> thought out things back then. > > Ok, then let's do it. Likewise.