1
Fork 0

Rename DiagnosticBuilder::handler as DiagnosticBuilder::dcx.

This commit is contained in:
Nicholas Nethercote 2023-12-18 13:35:22 +11:00
parent d1d0896c40
commit 9f3f1ca8c4
2 changed files with 2 additions and 2 deletions

View file

@ -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,