[][src]Function rustc_typeck::collect::compute_bounds

pub fn compute_bounds<'gcx: 'tcx, 'tcx>(
    astconv: &AstConv<'gcx, 'tcx>,
    param_ty: Ty<'tcx>,
    ast_bounds: &[GenericBound],
    sized_by_default: SizedByDefault,
    span: Span
) -> Bounds<'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?

Translate the AST's notion of ty param bounds (which are an enum consisting of a newtyped Ty or a region) to ty's notion of ty param bounds, which can either be user-defined traits, or the built-in trait (formerly known as kind): Send.