adapt for https://github.com/rust-lang/rust/commit/cce1701c4c3c37c96753ddb15fd822e71558d141
PiperOrigin-RevId: 592858034
Change-Id: I148a776118591b4953cdccc78265c17daa68a921
diff --git a/cc_bindings_from_rs/run_compiler.rs b/cc_bindings_from_rs/run_compiler.rs
index dfe35ef..631cf46 100644
--- a/cc_bindings_from_rs/run_compiler.rs
+++ b/cc_bindings_from_rs/run_compiler.rs
@@ -20,7 +20,7 @@
use rustc_interface::Queries;
use rustc_middle::ty::TyCtxt; // See also <internal link>/ty.html#import-conventions
use rustc_session::config::ErrorOutputType;
-use rustc_session::EarlyErrorHandler;
+use rustc_session::EarlyDiagCtxt;
/// Wrapper around `rustc_driver::RunCompiler::run` that exposes a
/// simplified API:
@@ -46,7 +46,7 @@
// `tracing::subscriber::set_global_default` always succeeds.
use once_cell::sync::Lazy;
static ENV_LOGGER_INIT: Lazy<()> = Lazy::new(|| {
- let early_error_handler = EarlyErrorHandler::new(ErrorOutputType::default());
+ let early_error_handler = EarlyDiagCtxt::new(ErrorOutputType::default());
rustc_driver::init_logger(
&early_error_handler,
rustc_log::LoggerConfig::from_env("CRUBIT_LOG"),