Function rustc_query_impl::make_query::local_def_id_to_hir_id
source · [−]pub fn local_def_id_to_hir_id<'tcx>(
tcx: QueryCtxt<'tcx>,
key: local_def_id_to_hir_id<'tcx>
) -> QueryStackFrameExpand description
Gives access to the HIR ID for the given LocalDefId owner key.
This can be conveniently accessed by methods on tcx.hir().
Avoid calling this query directly.