diff options
| author | Charles Lew <crlf0710@gmail.com> | 2022-11-12 18:50:57 +0800 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2022-11-18 14:46:36 -0800 |
| commit | b21e0b82c5245bb8329564bc328703bd03536dd2 (patch) | |
| tree | 89cd290254789c8523eed677aaea61aea724c048 | |
| parent | 707c035e006b7ed6e81081628a27cb6d6211bf06 (diff) | |
| download | rust-b21e0b82c5245bb8329564bc328703bd03536dd2.tar.gz rust-b21e0b82c5245bb8329564bc328703bd03536dd2.zip | |
Fix compilation issue after rebase
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 2c1d0037aa6..7d5e4723a6d 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -51,6 +51,9 @@ impl<'source> IntoDiagnosticArg for DiagnosticArgValue<'source> { 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(), + ), } } } |
