rust-diplomat / diplomat

Experimental Rust tool for generating FFI definitions allowing many other languages to call Rust code
https://rust-diplomat.github.io/book/
Other
532 stars 51 forks source link

Throw an error if an `enum` has a variant with a field #733

Closed emarteca closed 1 week ago

emarteca commented 1 week ago

Fixes https://github.com/rust-diplomat/diplomat/issues/732

Instead of throwing an error in lowering, I actually throw it in the parsing -- this makes more sense, since enum variant fields aren't tracked in the ast::Enum.