@@ -215,7 +215,7 @@ fn rustc_logger_config() -> rustc_log::LoggerConfig {
215
215
cfg
216
216
}
217
217
218
- fn init_early_loggers ( handler : & EarlyDiagCtxt ) {
218
+ fn init_early_loggers ( early_dcx : & EarlyDiagCtxt ) {
219
219
// Note that our `extern crate log` is *not* the same as rustc's; as a result, we have to
220
220
// initialize them both, and we always initialize `miri`'s first.
221
221
let env = env_logger:: Env :: new ( ) . filter ( "MIRI_LOG" ) . write_style ( "MIRI_LOG_STYLE" ) ;
@@ -224,15 +224,15 @@ fn init_early_loggers(handler: &EarlyDiagCtxt) {
224
224
// If it is not set, we avoid initializing now so that we can initialize later with our custom
225
225
// settings, and *not* log anything for what happens before `miri` gets started.
226
226
if env:: var_os ( "RUSTC_LOG" ) . is_some ( ) {
227
- rustc_driver:: init_logger ( handler , rustc_logger_config ( ) ) ;
227
+ rustc_driver:: init_logger ( early_dcx , rustc_logger_config ( ) ) ;
228
228
}
229
229
}
230
230
231
- fn init_late_loggers ( handler : & EarlyDiagCtxt , tcx : TyCtxt < ' _ > ) {
231
+ fn init_late_loggers ( early_dcx : & EarlyDiagCtxt , tcx : TyCtxt < ' _ > ) {
232
232
// If `RUSTC_LOG` is not set, then `init_early_loggers` did not call
233
233
// `rustc_driver::init_logger`, so we have to do this now.
234
234
if env:: var_os ( "RUSTC_LOG" ) . is_none ( ) {
235
- rustc_driver:: init_logger ( handler , rustc_logger_config ( ) ) ;
235
+ rustc_driver:: init_logger ( early_dcx , rustc_logger_config ( ) ) ;
236
236
}
237
237
238
238
// If `MIRI_BACKTRACE` is set and `RUSTC_CTFE_BACKTRACE` is not, set `RUSTC_CTFE_BACKTRACE`.
0 commit comments