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>>