[][src]Function rustc_typeck::check::check_fn

fn check_fn<'a, 'gcx, 'tcx>(
    inherited: &'a Inherited<'a, 'gcx, 'tcx>,
    param_env: ParamEnv<'tcx>,
    fn_sig: FnSig<'tcx>,
    decl: &'gcx FnDecl,
    fn_id: NodeId,
    body: &'gcx Body,
    can_be_generator: Option<GeneratorMovability>
) -> (FnCtxt<'a, 'gcx, 'tcx>, Option<GeneratorTypes<'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?

Helper used for fns and closures. Does the grungy work of checking a function body and returns the function context used for that purpose, since in the case of a fn item there is still a bit more to do.