Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bbaa930

Browse files
Fix compilation error "the trait bound SubdiagnosticMessage: From<&std::string::String> is not satisfied"
1 parent 6e21e48 commit bbaa930

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustdoc/passes/check_custom_code_classes.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ pub(crate) fn look_for_custom_classes<'tcx>(cx: &DocContext<'tcx>, item: &Item)
6767
.note(
6868
// This will list the wrong items to make them more easily searchable.
6969
// To ensure the most correct hits, it adds back the 'class:' that was stripped.
70-
&format!(
70+
format!(
7171
"found these custom classes: class={}",
7272
tests.custom_classes_found.join(",class=")
73-
),
73+
)
74+
.as_str(),
7475
)
7576
.emit();
7677
}

0 commit comments

Comments
 (0)