Function rustc_trait_selection::traits::object_safety::hir_ty_lowering_object_safety_violations
source · pub fn hir_ty_lowering_object_safety_violations(
tcx: TyCtxt<'_>,
trait_def_id: DefId,
) -> Vec<ObjectSafetyViolation>
Expand description
Returns the object safety violations that affect HIR ty lowering.
Currently that is Self
in supertraits. This is needed
because object_safety_violations
can’t be used during
type collection.