Module rustc_lint::source ·
enum_intrinsics_non_enumslint detects calls to intrinsic functions that require an enum (
core::mem::variant_count), but are called with a non-enum type.
trueif we know for sure that the given type is not an enum. Note that for cases where the type is generic, we can’t be certain if it will be an enum so we have to assume that it is.