about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 13:35:22 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 16:06:21 +1100
commit9f3f1ca8c455154b5c73528f47e6802b90041991 (patch)
tree7d95d9cebb90653ef12ab7f6ec2338d349cca65d /compiler/rustc_errors
parentd1d0896c401e3d07e14ed7a339a766bd0da71bd2 (diff)
downloadrust-9f3f1ca8c455154b5c73528f47e6802b90041991.tar.gz
rust-9f3f1ca8c455154b5c73528f47e6802b90041991.zip
Rename `DiagnosticBuilder::handler` as `DiagnosticBuilder::dcx`.
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/diagnostic_builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs
index aa05b211561..c2043d234ae 100644
--- a/compiler/rustc_errors/src/diagnostic_builder.rs
+++ b/compiler/rustc_errors/src/diagnostic_builder.rs
@@ -441,7 +441,7 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
     }
 
     /// Retrieves the [`DiagCtxt`] if available
-    pub fn handler(&self) -> Option<&DiagCtxt> {
+    pub fn dcx(&self) -> Option<&DiagCtxt> {
         match self.inner.state {
             DiagnosticBuilderState::Emittable(handler) => Some(handler),
             DiagnosticBuilderState::AlreadyEmittedOrDuringCancellation => None,