Construct DiagCtxt a bit earlier in build_session

This commit is contained in:
bjorn3 2025-02-05 15:01:17 +00:00
parent 79f82ad5e8
commit 9a833de62a
3 changed files with 6 additions and 14 deletions

View file

@ -442,7 +442,6 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
locale_resources.push(codegen_backend.locale_resource());
let mut sess = rustc_session::build_session(
early_dcx,
config.opts,
CompilerIO {
input: config.input,

View file

@ -65,7 +65,6 @@ where
static USING_INTERNAL_FEATURES: AtomicBool = AtomicBool::new(false);
let sess = build_session(
early_dcx,
sessopts,
io,
None,