Rename many DiagCtxt
and EarlyDiagCtxt
locals.
This commit is contained in:
parent
8b5a5daad4
commit
eeb3db1130
@ -176,10 +176,10 @@ pub(crate) fn compile_fn(
|
|||||||
match module.define_function(codegened_func.func_id, context) {
|
match module.define_function(codegened_func.func_id, context) {
|
||||||
Ok(()) => {}
|
Ok(()) => {}
|
||||||
Err(ModuleError::Compilation(CodegenError::ImplLimitExceeded)) => {
|
Err(ModuleError::Compilation(CodegenError::ImplLimitExceeded)) => {
|
||||||
let handler = rustc_session::EarlyDiagCtxt::new(
|
let early_dcx = rustc_session::EarlyDiagCtxt::new(
|
||||||
rustc_session::config::ErrorOutputType::default(),
|
rustc_session::config::ErrorOutputType::default(),
|
||||||
);
|
);
|
||||||
handler.early_error(format!(
|
early_dcx.early_error(format!(
|
||||||
"backend implementation limit exceeded while compiling {name}",
|
"backend implementation limit exceeded while compiling {name}",
|
||||||
name = codegened_func.symbol_name
|
name = codegened_func.symbol_name
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user