mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
e9cf280ef2
Bindgen allows generating `#[non_exhaustive] #[repr(u32)]` enums. This results in nonintuitive nonlocal `improper_ctypes` warnings, even when the types are otherwise perfectly valid in C. Adjust for actual tooling expectations by avoiding warning on simple enums with only unit variants.