about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-17 22:01:06 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 16:06:21 +1100
commit42729d6b9ad2ddf5deb70b4a8a855f047de5aed4 (patch)
treecb4e83a9367422257f4dcfe23f9bac17bf0c0052 /src
parent22e769c0327bc40442100c04c332eb57be4e3864 (diff)
downloadrust-42729d6b9ad2ddf5deb70b4a8a855f047de5aed4.tar.gz
rust-42729d6b9ad2ddf5deb70b4a8a855f047de5aed4.zip
Rename `EarlyErrorHandler` as `EarlyDiagCtxt`.
Diffstat (limited to 'src')
-rw-r--r--src/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver.rs b/src/driver.rs
index 49f0cad08e0..af38dde254e 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -18,7 +18,7 @@ extern crate rustc_span;
 use rustc_interface::interface;
 use rustc_session::config::ErrorOutputType;
 use rustc_session::parse::ParseSess;
-use rustc_session::EarlyErrorHandler;
+use rustc_session::EarlyDiagCtxt;
 use rustc_span::symbol::Symbol;
 
 use std::env;
@@ -174,7 +174,7 @@ const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/ne
 #[allow(clippy::too_many_lines)]
 #[allow(clippy::ignored_unit_patterns)]
 pub fn main() {
-    let handler = EarlyErrorHandler::new(ErrorOutputType::default());
+    let handler = EarlyDiagCtxt::new(ErrorOutputType::default());
 
     rustc_driver::init_rustc_env_logger(&handler);