Function rustc_smir::stable_mir::with

source ·
pub(crate) fn with<R>(f: impl FnOnce(&mut dyn Context) -> R) -> R
Expand description

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