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 /compiler/rustc_driver_impl/src | |
| 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 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 0fe5a966199..f38adefa7c0 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -185,7 +185,6 @@ pub trait Callbacks { /// continue the compilation afterwards (defaults to `Compilation::Continue`) fn after_analysis<'tcx>( &mut self, - _handler: &EarlyErrorHandler, _compiler: &interface::Compiler, _queries: &'tcx Queries<'tcx>, ) -> Compilation { @@ -446,7 +445,7 @@ fn run_compiler( queries.global_ctxt()?.enter(|tcx| tcx.analysis(()))?; - if callbacks.after_analysis(&handler, compiler, queries) == Compilation::Stop { + if callbacks.after_analysis(compiler, queries) == Compilation::Stop { return early_exit(); } |
