1
Fork 0

Remove EarlyErrorHandler argument from after_analysis callback

It is only used by miri which can create a new one using the Session.
This commit is contained in:
bjorn3 2023-09-10 09:44:03 +00:00
parent 90e9053189
commit 2eca717a24
4 changed files with 4 additions and 8 deletions

View file

@ -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();
}