clippy_utils

Function get_async_fn_body

Source
pub fn get_async_fn_body<'tcx>(
    tcx: TyCtxt<'tcx>,
    body: &Body<'_>,
) -> Option<&'tcx Expr<'tcx>>
Expand description

Peels away all the compiler generated code surrounding the body of an async function,