Function rustc::ty::adt_sized_constraint [−][src]
fn adt_sized_constraint<'a, 'tcx>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
def_id: DefId
) -> &'tcx [Ty<'tcx>]
🔬 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?
Calculates the Sized-constraint.
In fact, there are only a few options for the types in the constraint: - an obviously-unsized type - a type parameter or projection whose Sizedness can't be known - a tuple of type parameters or projections, if there are multiple such. - a TyError, if a type contained itself. The representability check should catch this case.