rustc_smir::rustc_internal

Function with_tables

Source
pub(crate) fn with_tables<R>(
    f: impl for<'tcx> FnOnce(&mut Tables<'tcx>) -> R,
) -> R
Expand description

Loads the current context and calls a function with it. Do not nest these, as that will ICE.