1
Fork 0

Rename DiagnosticLocation as DiagLocation.

This commit is contained in:
Nicholas Nethercote 2024-02-23 15:43:34 +11:00
parent d0ef108ce9
commit e3c19a2928
3 changed files with 12 additions and 12 deletions

View file

@ -1,4 +1,4 @@
use crate::diagnostic::DiagnosticLocation;
use crate::diagnostic::DiagLocation;
use crate::{fluent_generated as fluent, AddToDiagnostic};
use crate::{
Diag, DiagArgValue, DiagCtxt, EmissionGuarantee, ErrCode, IntoDiagnostic, IntoDiagnosticArg,
@ -315,7 +315,7 @@ pub struct ExpectedLifetimeParameter {
pub count: usize,
}
impl IntoDiagnosticArg for DiagnosticLocation {
impl IntoDiagnosticArg for DiagLocation {
fn into_diagnostic_arg(self) -> DiagArgValue {
DiagArgValue::Str(Cow::from(self.to_string()))
}