rustc_interface::passes

Function create_global_ctxt

Source
pub(crate) fn create_global_ctxt<'tcx>(
    compiler: &'tcx Compiler,
    krate: Crate,
    gcx_cell: &'tcx OnceLock<GlobalCtxt<'tcx>>,
    arena: &'tcx WorkerLocal<Arena<'tcx>>,
    hir_arena: &'tcx WorkerLocal<Arena<'tcx>>,
) -> Result<&'tcx GlobalCtxt<'tcx>>