We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aad7f60 + ac3c9a7 commit 3035118Copy full SHA for 3035118
src/bin/miri.rs
@@ -59,7 +59,6 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
59
60
fn after_analysis<'tcx>(
61
&mut self,
62
- handler: &EarlyErrorHandler,
63
_: &rustc_interface::interface::Compiler,
64
queries: &'tcx rustc_interface::Queries<'tcx>,
65
) -> Compilation {
@@ -68,7 +67,8 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
68
67
tcx.sess.fatal("miri cannot be run on programs that fail compilation");
69
}
70
71
- init_late_loggers(handler, tcx);
+ let handler = EarlyErrorHandler::new(tcx.sess.opts.error_format);
+ init_late_loggers(&handler, tcx);
72
if !tcx.crate_types().contains(&CrateType::Executable) {
73
tcx.sess.fatal("miri only makes sense on bin crates");
74
0 commit comments