]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_errors/src/diagnostic.rs
Rollup merge of #104927 - compiler-errors:binder-shifting-logic, r=oli-obk
[rust.git] / compiler / rustc_errors / src / diagnostic.rs
index 2c1d0037aa64f75f8532def609da85398d770547..7d5e4723a6d883b6b22bf24c19259c93f210c3fa 100644 (file)
@@ -51,6 +51,9 @@ fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
         match self {
             DiagnosticArgValue::Str(s) => DiagnosticArgValue::Str(Cow::Owned(s.into_owned())),
             DiagnosticArgValue::Number(n) => DiagnosticArgValue::Number(n),
+            DiagnosticArgValue::StrListSepByAnd(l) => DiagnosticArgValue::StrListSepByAnd(
+                l.into_iter().map(|s| Cow::Owned(s.into_owned())).collect(),
+            ),
         }
     }
 }