From a09b1d33a703d4ed412e70d3197e73ba7e0937f9 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 5 Mar 2024 16:53:24 +1100 Subject: Rename `IntoDiagnosticArg` as `IntoDiagArg`. Also rename `into_diagnostic_arg` as `into_diag_arg`, and `NotIntoDiagnosticArg` as `NotInotDiagArg`. --- compiler/rustc_codegen_ssa/src/assert_module_sources.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/rustc_codegen_ssa/src/assert_module_sources.rs') diff --git a/compiler/rustc_codegen_ssa/src/assert_module_sources.rs b/compiler/rustc_codegen_ssa/src/assert_module_sources.rs index 7ecc3864347..e441aea8400 100644 --- a/compiler/rustc_codegen_ssa/src/assert_module_sources.rs +++ b/compiler/rustc_codegen_ssa/src/assert_module_sources.rs @@ -27,7 +27,7 @@ use crate::errors; use rustc_ast as ast; use rustc_data_structures::unord::UnordMap; use rustc_data_structures::unord::UnordSet; -use rustc_errors::{DiagArgValue, IntoDiagnosticArg}; +use rustc_errors::{DiagArgValue, IntoDiagArg}; use rustc_hir::def_id::LOCAL_CRATE; use rustc_middle::mir::mono::CodegenUnitNameBuilder; use rustc_middle::ty::TyCtxt; @@ -205,8 +205,8 @@ impl fmt::Display for CguReuse { } } -impl IntoDiagnosticArg for CguReuse { - fn into_diagnostic_arg(self) -> DiagArgValue { +impl IntoDiagArg for CguReuse { + fn into_diag_arg(self) -> DiagArgValue { DiagArgValue::Str(Cow::Owned(self.to_string())) } } -- cgit 1.4.1-3-g733a5