We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c24176 commit ecaf5f7Copy full SHA for ecaf5f7
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