rustc_session::session

Function build_session

source
pub fn build_session(
    early_dcx: EarlyDiagCtxt,
    sopts: Options,
    io: CompilerIO,
    bundle: Option<Lrc<FluentBundle>>,
    registry: Registry,
    fluent_resources: Vec<&'static str>,
    driver_lint_caps: FxHashMap<LintId, Level>,
    target: Target,
    sysroot: PathBuf,
    cfg_version: &'static str,
    ice_file: Option<PathBuf>,
    using_internal_features: Arc<AtomicBool>,
    expanded_args: Vec<String>,
) -> Session