[][src]Function rustc_lint::types::is_repr_nullable_ptr

fn is_repr_nullable_ptr<'a, 'tcx>(
    tcx: TyCtxt<'a, 'tcx, 'tcx>,
    def: &'tcx AdtDef,
    substs: &Substs<'tcx>
) -> bool
🔬 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?

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.