Function rustc_trait_selection::traits::object_safety::object_safety_violation_for_method
source · [−]fn object_safety_violation_for_method(
tcx: TyCtxt<'_>,
trait_def_id: DefId,
method: &AssocItem
) -> Option<(MethodViolationCode, Span)>
Expand description
Returns Some(_)
if this method makes the containing trait not object safe.