Function rustc_smir::stable_mir::with
source · pub(crate) fn with<R>(f: impl FnOnce(&mut dyn Context) -> R) -> RExpand description
Loads the current context and calls a function with it. Do not nest these, as that will ICE.
pub(crate) fn with<R>(f: impl FnOnce(&mut dyn Context) -> R) -> RLoads the current context and calls a function with it. Do not nest these, as that will ICE.