diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 11:15:13 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:22 +1100 |
| commit | eeb3db11303d308eb031bfcd459d163440c2f59f (patch) | |
| tree | c8233472c3913a403b94c8b457f5207f35058ebb /src | |
| parent | 8b5a5daad4b9b8edfbe878a7bb6e007a90b809b9 (diff) | |
| download | rust-eeb3db11303d308eb031bfcd459d163440c2f59f.tar.gz rust-eeb3db11303d308eb031bfcd459d163440c2f59f.zip | |
Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.
Diffstat (limited to 'src')
| -rw-r--r-- | src/base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.rs b/src/base.rs index a2f4b1e7b48..8b0dc611075 100644 --- a/src/base.rs +++ b/src/base.rs @@ -176,10 +176,10 @@ pub(crate) fn compile_fn( match module.define_function(codegened_func.func_id, context) { Ok(()) => {} Err(ModuleError::Compilation(CodegenError::ImplLimitExceeded)) => { - let handler = rustc_session::EarlyDiagCtxt::new( + let early_dcx = rustc_session::EarlyDiagCtxt::new( rustc_session::config::ErrorOutputType::default(), ); - handler.early_error(format!( + early_dcx.early_error(format!( "backend implementation limit exceeded while compiling {name}", name = codegened_func.symbol_name )); |
