Construct DiagCtxt a bit earlier in build_session
This commit is contained in:
parent
79f82ad5e8
commit
9a833de62a
3 changed files with 6 additions and 14 deletions
|
@ -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,
|
||||
|
|
|
@ -65,7 +65,6 @@ where
|
|||
static USING_INTERNAL_FEATURES: AtomicBool = AtomicBool::new(false);
|
||||
|
||||
let sess = build_session(
|
||||
early_dcx,
|
||||
sessopts,
|
||||
io,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue