Skip to main content

is_nonnull_dangling

Function is_nonnull_dangling 

Source
pub fn is_nonnull_dangling(tcx: TyCtxt<'_>, did: DefId) -> bool
Expand description

Identify NonNull::dangling for its constructor summary when MIR expansion is disabled. Unlike an arbitrary NonNull<T>, its result is aligned for T and has no allocation provenance; the type invariant only guarantees non-nullness.