about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-02 10:14:14 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-03 09:02:50 +1100
commit6fdaf3ef7fb5ea72345520a1219ea5cc77d0f71c (patch)
tree7108042a53f43e2546bc6e625ae3079058bfb455 /compiler/rustc_errors/src
parentdf322fc29ffc984d488bbaf3a58e95c4002d4b7e (diff)
downloadrust-6fdaf3ef7fb5ea72345520a1219ea5cc77d0f71c.tar.gz
rust-6fdaf3ef7fb5ea72345520a1219ea5cc77d0f71c.zip
Use `DiagnosticArgName` in a few more places.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs
index 789889973e2..5579b50e85a 100644
--- a/compiler/rustc_errors/src/diagnostic.rs
+++ b/compiler/rustc_errors/src/diagnostic.rs
@@ -900,7 +900,7 @@ impl Diagnostic {
 
     pub fn arg(
         &mut self,
-        name: impl Into<Cow<'static, str>>,
+        name: impl Into<DiagnosticArgName>,
         arg: impl IntoDiagnosticArg,
     ) -> &mut Self {
         self.args.insert(name.into(), arg.into_diagnostic_arg());