Rename DiagnosticBuilder::handler
as DiagnosticBuilder::dcx
.
This commit is contained in:
parent
d1d0896c40
commit
9f3f1ca8c4
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue