Skip to main content

query_ensure_error_guaranteed

Function query_ensure_error_guaranteed 

Source
pub(crate) fn query_ensure_error_guaranteed<'tcx, C, T>(
    tcx: TyCtxt<'tcx>,
    query: &'tcx QueryVTable<'tcx, C>,
    key: C::Key,
    ensure_mode: EnsureMode,
) -> Result<(), ErrorGuaranteed>
Expand description

Shared implementation of tcx.ensure_ok().$query(..) for queries that have the return_result_from_ensure_ok modifier.