diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-05-03 14:44:45 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-09-15 21:32:29 +0200 |
| commit | bbaa930b35667947fb6791527cb8e3a273c8b087 (patch) | |
| tree | 4ce59733c83d1225acd4bd17e5538005dd3b42e9 | |
| parent | 6e21e4823d4bc8f8004271e0b327c7ae4ac9103f (diff) | |
| download | rust-bbaa930b35667947fb6791527cb8e3a273c8b087.tar.gz rust-bbaa930b35667947fb6791527cb8e3a273c8b087.zip | |
Fix compilation error "the trait bound `SubdiagnosticMessage: From<&std::string::String>` is not satisfied"
| -rw-r--r-- | src/librustdoc/passes/check_custom_code_classes.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/passes/check_custom_code_classes.rs b/src/librustdoc/passes/check_custom_code_classes.rs index 246e7f8f331..eb32e796431 100644 --- a/src/librustdoc/passes/check_custom_code_classes.rs +++ b/src/librustdoc/passes/check_custom_code_classes.rs @@ -67,10 +67,11 @@ pub(crate) fn look_for_custom_classes<'tcx>(cx: &DocContext<'tcx>, item: &Item) .note( // This will list the wrong items to make them more easily searchable. // To ensure the most correct hits, it adds back the 'class:' that was stripped. - &format!( + format!( "found these custom classes: class={}", tests.custom_classes_found.join(",class=") - ), + ) + .as_str(), ) .emit(); } |
