Function rustc_middle::ty::tls::with_opt
source · pub fn with_opt<F, R>(f: F) -> R
Expand description
Allows access to the TyCtxt
in the current ImplicitCtxt
.
The closure is passed None if there is no ImplicitCtxt
available.