clippy_utils::mir

Function enclosing_mir

source
pub fn enclosing_mir(tcx: TyCtxt<'_>, hir_id: HirId) -> Option<&Body<'_>>
Expand description

Returns the mir::Body containing the node associated with hir_id.