Rename EarlyErrorHandler as EarlyDiagCtxt.

This commit is contained in:
Nicholas Nethercote 2023-12-17 22:01:06 +11:00
parent 45f347681d
commit cce1701c4c
16 changed files with 77 additions and 88 deletions

View file

@ -176,7 +176,7 @@ pub(crate) fn compile_fn(
match module.define_function(codegened_func.func_id, context) {
Ok(()) => {}
Err(ModuleError::Compilation(CodegenError::ImplLimitExceeded)) => {
let handler = rustc_session::EarlyErrorHandler::new(
let handler = rustc_session::EarlyDiagCtxt::new(
rustc_session::config::ErrorOutputType::default(),
);
handler.early_error(format!(