Function rustc_mir_dataflow::ty::util::needs_drop_components [−][src]
pub fn needs_drop_components(
ty: &'tcx TyS<'tcx>,
target_layout: &TargetDataLayout
) -> Result<SmallVec<[&'tcx TyS<'tcx>; 2]>, AlwaysRequiresDrop>Expand description
Returns a list of types such that the given type needs drop if and only if
any of the returned types need drop. Returns Err(AlwaysRequiresDrop) if
this type always needs drop.