Module types Copy item path Source improper_ctypes π literal π InvalidAtomicOrdering TypeLimits π VariantSizeDifferences ComparisonOp π AMBIGUOUS_WIDE_POINTER_COMPARISONS π The ambiguous_wide_pointer_comparisons lint checks comparison
of *const/*mut ?Sized as the operands. INVALID_ATOMIC_ORDERING π The invalid_atomic_ordering lint detects passing an Ordering
to an atomic operation that does not support that ordering. INVALID_NAN_COMPARISONS π The invalid_nan_comparisons lint checks comparison with f32::NAN or f64::NAN
as one of the operand. OVERFLOWING_LITERALS π The overflowing_literals lint detects literals out of range for their type. UNPREDICTABLE_FUNCTION_POINTER_COMPARISONS π The unpredictable_function_pointer_comparisons lint checks comparison
of function pointer as the operands. UNUSED_COMPARISONS π The unused_comparisons lint detects comparisons made useless by
limits of the types involved. VARIANT_SIZE_DIFFERENCES π The variant_size_differences lint detects enums with widely varying
variant sizes. get_nullable_type π Given a non-null scalar (or transparent) type ty, return the nullable version of that type.
If the type passed in was not scalar, returns None. get_nullable_type_from_pat π is_niche_optimization_candidate π A type is niche-optimization candidate iff: lint_fn_pointer π lint_nan π lint_wide_pointer π nonnull_optimization_guaranteed π pat_ty_is_known_nonnull π repr_nullable_ptr π Check if this enum can be safely exported based on the βnullable pointer optimizationβ. If it
can, return the type that ty can be safely converted to, otherwise return None.
Currently restricted to function pointers, boxes, references, core::num::NonZero,
core::ptr::NonNull, and #[repr(transparent)] newtypes. transparent_newtype_field π repr(transparent) structs can have a single non-1-ZST field, this function returns that
field.ty_is_known_nonnull π Is type known to be non-null?