obtaining a reference to an empty enum is not possible in Rust, so I just replaced any match on self with an `unreachable!()` I checked if an enum is empty by checking if the `variant_patterns` vec of the `EnumVariantOutputData` struct is empty Fixes #18277 ## Testing I added one new unit test. ``` rust #[test] fn should_allow_empty_enums() { #[derive(Reflect)] enum Empty {} assert_impl_all!(Empty: Reflect); } ``` |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||