Function clippy_utils::mir::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
.
pub fn enclosing_mir(tcx: TyCtxt<'_>, hir_id: HirId) -> Option<&Body<'_>>
Returns the mir::Body
containing the node associated with hir_id
.