Skip to content

Commit 569fcec

Browse files
committed
Rename many DiagCtxt and EarlyDiagCtxt locals.
1 parent 2f5e8ed commit 569fcec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/miri.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
6969
tcx.sess.fatal("miri cannot be run on programs that fail compilation");
7070
}
7171

72-
let handler = EarlyDiagCtxt::new(tcx.sess.opts.error_format);
73-
init_late_loggers(&handler, tcx);
72+
let early_dcx = EarlyDiagCtxt::new(tcx.sess.opts.error_format);
73+
init_late_loggers(&early_dcx, tcx);
7474
if !tcx.crate_types().contains(&CrateType::Executable) {
7575
tcx.sess.fatal("miri only makes sense on bin crates");
7676
}
@@ -300,7 +300,7 @@ fn parse_comma_list<T: FromStr>(input: &str) -> Result<Vec<T>, T::Err> {
300300
}
301301

302302
fn main() {
303-
let handler = EarlyDiagCtxt::new(ErrorOutputType::default());
303+
let early_dcx = EarlyDiagCtxt::new(ErrorOutputType::default());
304304

305305
// Snapshot a copy of the environment before `rustc` starts messing with it.
306306
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
@@ -311,7 +311,7 @@ fn main() {
311311
// Earliest rustc setup.
312312
let using_internal_features =
313313
rustc_driver::install_ice_hook(rustc_driver::DEFAULT_BUG_REPORT_URL, |_| ());
314-
rustc_driver::init_rustc_env_logger(&handler);
314+
rustc_driver::init_rustc_env_logger(&early_dcx);
315315

316316
let target_crate = if crate_kind == "target" {
317317
true
@@ -335,7 +335,7 @@ fn main() {
335335
rustc_driver::install_ice_hook("https://github.com/rust-lang/miri/issues/new", |_| ());
336336

337337
// Init loggers the Miri way.
338-
init_early_loggers(&handler);
338+
init_early_loggers(&early_dcx);
339339

340340
// Parse our arguments and split them across `rustc` and `miri`.
341341
let mut miri_config = miri::MiriConfig::default();

0 commit comments

Comments
 (0)