diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-09-10 09:44:03 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-09-10 09:44:03 +0000 |
| commit | 2eca717a240a37e4e996d727b6506d2f2e990b74 (patch) | |
| tree | 853860bff1df6cc36ca8444504735e1fb0ff2bf6 /src/tools | |
| parent | 90e9053189da16be1f1ee00836e692edb9bf8154 (diff) | |
| download | rust-2eca717a240a37e4e996d727b6506d2f2e990b74.tar.gz rust-2eca717a240a37e4e996d727b6506d2f2e990b74.zip | |
Remove EarlyErrorHandler argument from after_analysis callback
It is only used by miri which can create a new one using the Session.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/miri/src/bin/miri.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/src/bin/miri.rs b/src/tools/miri/src/bin/miri.rs index 97718f1f4a9..1e9219d4bb2 100644 --- a/src/tools/miri/src/bin/miri.rs +++ b/src/tools/miri/src/bin/miri.rs @@ -59,7 +59,6 @@ impl rustc_driver::Callbacks for MiriCompilerCalls { fn after_analysis<'tcx>( &mut self, - handler: &EarlyErrorHandler, _: &rustc_interface::interface::Compiler, queries: &'tcx rustc_interface::Queries<'tcx>, ) -> Compilation { @@ -68,7 +67,8 @@ impl rustc_driver::Callbacks for MiriCompilerCalls { tcx.sess.fatal("miri cannot be run on programs that fail compilation"); } - init_late_loggers(handler, tcx); + let handler = EarlyErrorHandler::new(tcx.sess.opts.error_format); + init_late_loggers(&handler, tcx); if !tcx.crate_types().contains(&CrateType::Executable) { tcx.sess.fatal("miri only makes sense on bin crates"); } |
