about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-30 16:04:03 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-30 18:46:08 +1100
commitf0426b77fc1f4bc170ababce990c88565310eb26 (patch)
treeb16f02c8c20330f8f6d00e9541bc716ab78c8edc /compiler/rustc_codegen_ssa/src/back
parent06aa381adbd5bac561c57dc6fc0390da8ec45b69 (diff)
downloadrust-f0426b77fc1f4bc170ababce990c88565310eb26.tar.gz
rust-f0426b77fc1f4bc170ababce990c88565310eb26.zip
Remove the lifetime from `DiagnosticArgName`.
Because it's always 'static.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs
index 562359a6b39..06edb794537 100644
--- a/compiler/rustc_codegen_ssa/src/back/write.rs
+++ b/compiler/rustc_codegen_ssa/src/back/write.rs
@@ -1000,7 +1000,7 @@ pub struct CguMessage;
 
 struct Diagnostic {
     msgs: Vec<(DiagnosticMessage, Style)>,
-    args: FxHashMap<DiagnosticArgName<'static>, DiagnosticArgValue>,
+    args: FxHashMap<DiagnosticArgName, DiagnosticArgValue>,
     code: Option<ErrCode>,
     lvl: Level,
 }