Function rustc_middle::ty::context::tls::enter_context

source ยท
pub fn enter_context<'a, 'tcx, F, R>(
    context: &ImplicitCtxt<'a, 'tcx>,
    f: F,
) -> R
where F: FnOnce() -> R,
Expand description

Sets context as the new current ImplicitCtxt for the duration of the function f.