Skip to main content

## query_ensure_ok_or_done

# Function query_ensure_ok_or_done

Source

    pub(crate) fn query_ensure_ok_or_done<'tcx, C>(
        tcx: TyCtxt<'tcx>,
        query: &'tcx QueryVTable<'tcx, C>,
        key: C::Key,
        ensure_mode: EnsureMode,
    )where
        C: QueryCache,

Expand description

Shared implementation of `tcx.ensure_ok().$query(..)` and `tcx.ensure_done().$query(..)` for all queries.