rustc_interface::passes

Function create_and_enter_global_ctxt

Source
pub fn create_and_enter_global_ctxt<T, F: for<'tcx> FnOnce(TyCtxt<'tcx>) -> T>(
    compiler: &Compiler,
    krate: Crate,
    f: F,
) -> T