[−][src]Function rustc_mir::transform::check_unsafety::is_enclosed

pub(in transform::check_unsafety) fn is_enclosed(
    tcx: TyCtxt<'_>,
    used_unsafe: &FxHashSet<HirId>,
    id: HirId
) -> Option<(String, HirId)>

Returns the HirId for an enclosing scope that is also unsafe.