Skip to main content

compile_body

Function compile_body 

Source
pub fn compile_body(
    input: impl Into<String>,
    callback: impl for<'tcx> FnOnce(TyCtxt<'tcx>, BodyId, &'tcx BodyWithBorrowckFacts<'tcx>) + Send,
)
Expand description

Convenience alias for CompileBuilder::new(input).compile(...) if the callback is going to use CompileResult::as_body.