rustc_
lint
1.84.0-dev
In rustc_
lint::
types
Modules
improper_ctypes
literal
Structs
CTypesVisitorState
ImproperCTypesDeclarations
ImproperCTypesDefinitions
ImproperCTypesVisitor
InvalidAtomicOrdering
TypeLimits
VariantSizeDifferences
Enums
CItemKind
ComparisonOp
FfiResult
Statics
AMBIGUOUS_WIDE_POINTER_COMPARISONS
IMPROPER_CTYPES
IMPROPER_CTYPES_DEFINITIONS
INVALID_ATOMIC_ORDERING
INVALID_NAN_COMPARISONS
OVERFLOWING_LITERALS
UNUSED_COMPARISONS
VARIANT_SIZE_DIFFERENCES
Functions
get_nullable_type
is_niche_optimization_candidate
lint_nan
lint_wide_pointer
nonnull_optimization_guaranteed
repr_nullable_ptr
transparent_newtype_field
ty_is_known_nonnull
rustc_lint
::
types
Function
nonnull_optimization_guaranteed
Copy item path
Settings
Help
Summary
Source
pub(crate) fn nonnull_optimization_guaranteed<'tcx>( tcx:
TyCtxt
<'tcx>, def:
AdtDef
<'tcx>, ) ->
bool