[][src]Module rustc_lint::types

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Structs

ImproperCTypes [
Experimental
]
ImproperCTypesVisitor [
Experimental
]
TypeLimits [
Experimental
]
VariantSizeDifferences [
Experimental
]

Enums

FfiResult [
Experimental
]

Statics

IMPROPER_CTYPES [
Experimental
]
OVERFLOWING_LITERALS [
Experimental
]
UNUSED_COMPARISONS [
Experimental
]
VARIANT_SIZE_DIFFERENCES [
Experimental
]

Functions

is_repr_nullable_ptr [
Experimental
]

Check if this enum can be safely exported based on the "nullable pointer optimization". Currently restricted to function pointers and references, but could be expanded to cover NonZero raw pointers and newtypes. FIXME: This duplicates code in codegen.