rust/tests/ui/rfcs/rfc-2008-non-exhaustive
Jubilee Young e9cf280ef2 warn less about non-exhaustive in ffi
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.
2024-09-19 12:56:31 -07:00
..
auxiliary
improper_ctypes warn less about non-exhaustive in ffi 2024-09-19 12:56:31 -07:00
uninhabited Add a machine-applicable suggestion to "unreachable pattern" 2024-09-13 21:01:29 +02:00
borrowck-exhaustive.rs
borrowck-non-exhaustive.rs
borrowck-non-exhaustive.stderr
enum_same_crate_empty_match.rs
enum_same_crate_empty_match.stderr Add a machine-applicable suggestion to "unreachable pattern" 2024-09-13 21:01:29 +02:00
enum_same_crate.rs
enum-as-cast.rs
enum-as-cast.stderr
enum.rs
enum.stderr
invalid-attribute.rs
invalid-attribute.stderr
omitted-patterns-dont-lint-on-arm.lint.stderr
omitted-patterns-dont-lint-on-arm.normal.stderr
omitted-patterns-dont-lint-on-arm.rs
omitted-patterns.rs
omitted-patterns.stderr
stable-omitted-patterns.rs
stable-omitted-patterns.stderr
struct.rs
struct.stderr
structs_same_crate.rs
variant.rs
variant.stderr
variants_fictive_visibility.rs
variants_same_crate.rs