We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 707c035 commit b21e0b8Copy full SHA for b21e0b8
compiler/rustc_errors/src/diagnostic.rs
@@ -51,6 +51,9 @@ impl<'source> IntoDiagnosticArg for DiagnosticArgValue<'source> {
51
match self {
52
DiagnosticArgValue::Str(s) => DiagnosticArgValue::Str(Cow::Owned(s.into_owned())),
53
DiagnosticArgValue::Number(n) => DiagnosticArgValue::Number(n),
54
+ DiagnosticArgValue::StrListSepByAnd(l) => DiagnosticArgValue::StrListSepByAnd(
55
+ l.into_iter().map(|s| Cow::Owned(s.into_owned())).collect(),
56
+ ),
57
}
58
59
0 commit comments