diff --git a/src/driver/aot.rs b/src/driver/aot.rs index 11229dd421e..b3ab533df3d 100644 --- a/src/driver/aot.rs +++ b/src/driver/aot.rs @@ -422,7 +422,7 @@ pub(crate) fn run_aot( backend_config.clone(), global_asm_config.clone(), cgu.name(), - concurrency_limiter.acquire(tcx.sess.diagnostic()), + concurrency_limiter.acquire(tcx.sess.dcx()), ), module_codegen, Some(rustc_middle::dep_graph::hash_result),