Function rustc_middle::ty::tls::with
source · pub fn with<F, R>(f: F) -> Rwhere
F: for<'tcx> FnOnce(TyCtxt<'tcx>) -> R,
Expand description
Allows access to the TyCtxt
in the current ImplicitCtxt
.
Panics if there is no ImplicitCtxt
available.