Function rustc_lint::types::ty_is_known_nonnull
source · fn ty_is_known_nonnull<'tcx>(
cx: &LateContext<'tcx>,
ty: Ty<'tcx>,
mode: CItemKind
) -> bool
Expand description
Is type known to be non-null?
fn ty_is_known_nonnull<'tcx>(
cx: &LateContext<'tcx>,
ty: Ty<'tcx>,
mode: CItemKind
) -> bool
Is type known to be non-null?