Function rustc_passes::dead::ty_ref_to_pub_struct

source ·
fn ty_ref_to_pub_struct(tcx: TyCtxt<'_>, ty: &Ty<'_>) -> Publicness
Expand description

check struct and its fields are public or not, for enum and union, just check they are public, and doesn’t solve types like &T for now, just skip them