about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 11:15:13 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 16:06:22 +1100
commitd165a38de033c54e27ab89faca97cbab24d5e6f5 (patch)
tree60b109c96c78ebb58da2f16d86bd3decb0371ff8 /src
parentbc3a3bcf0c6c06666a502bb370ba9c7e9b119f64 (diff)
downloadrust-d165a38de033c54e27ab89faca97cbab24d5e6f5.tar.gz
rust-d165a38de033c54e27ab89faca97cbab24d5e6f5.zip
Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.
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 af38dde254e..b944a299256 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -174,9 +174,9 @@ 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 = EarlyDiagCtxt::new(ErrorOutputType::default());
+    let early_dcx = EarlyDiagCtxt::new(ErrorOutputType::default());
 
-    rustc_driver::init_rustc_env_logger(&handler);
+    rustc_driver::init_rustc_env_logger(&early_dcx);
 
     let using_internal_features = rustc_driver::install_ice_hook(BUG_REPORT_URL, |handler| {
         // FIXME: this macro calls unwrap internally but is called in a panicking context!  It's not