Function rustc_interface::util::create_session
source · pub fn create_session(
sopts: Options,
cfg: FxHashSet<(String, Option<String>)>,
check_cfg: CheckCfg,
locale_resources: &'static [&'static str],
file_loader: Option<Box<dyn FileLoader + Send + Sync + 'static>>,
io: CompilerIO,
lint_caps: FxHashMap<LintId, Level>,
make_codegen_backend: Option<Box<dyn FnOnce(&Options) -> Box<dyn CodegenBackend> + Send>>,
descriptions: Registry
) -> (Session, Box<dyn CodegenBackend>)