rustc_middle::query::plumbing

Function query_get_at

source
pub fn query_get_at<'tcx, Cache>(
    tcx: TyCtxt<'tcx>,
    execute_query: fn(_: TyCtxt<'tcx>, _: Span, _: Cache::Key, _: QueryMode) -> Option<Cache::Value>,
    query_cache: &Cache,
    span: Span,
    key: Cache::Key,
) -> Cache::Value
where Cache: QueryCache,