Sean1708 / rusty-cheddar

A Rust crate for automatically generating C header files from Rust source file.
http://sean1708.github.io/rusty-cheddar/
191 stars 25 forks source link

Handle univariant enums. #12

Closed Sean1708 closed 8 years ago

Sean1708 commented 8 years ago

Currently you can't have #[repr(C)] univariant enums like the following:

#[repr(C)]
enum Foo {
    Bar,
}

The error message is rather cryptic because we automatically add #[repr(C)] (so it isn't shown in the error message), should we warn about this?

Sean1708 commented 8 years ago

Similarly for zero-element enum.

Sean1708 commented 8 years ago

Closed by fc4dba1a02bbb2373f515d819618fa0aff8fe769.