rustc_middle::ty::tls

Function with_context

Source
pub fn with_context<F, R>(f: F) -> R
where F: for<'a, 'tcx> FnOnce(&ImplicitCtxt<'a, 'tcx>) -> R,
Expand description

Allows access to the current ImplicitCtxt. Panics if there is no ImplicitCtxt available.