diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-23 15:43:34 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-28 08:55:37 +1100 |
| commit | e3c19a2928c55ebeaa0f229fa86ea74e93b06d46 (patch) | |
| tree | 1411ffd6db4537c274d5902c167fc719ad659a21 /compiler/rustc_errors/src/diagnostic_impls.rs | |
| parent | d0ef108ce991db652ac19f652af70d194920aa26 (diff) | |
| download | rust-e3c19a2928c55ebeaa0f229fa86ea74e93b06d46.tar.gz rust-e3c19a2928c55ebeaa0f229fa86ea74e93b06d46.zip | |
Rename `DiagnosticLocation` as `DiagLocation`.
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_impls.rs')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_impls.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs index a245fef3343..fb554face33 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -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())) } |
