Function rustc_mir::transform::check_unsafety::is_enclosed [−][src]
fn is_enclosed(
tcx: TyCtxt,
used_unsafe: &FxHashSet<NodeId>,
id: NodeId
) -> Option<(String, NodeId)>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Return the NodeId for an enclosing scope that is also unsafe