Remove unnecessary dyn Display in favor of str

This commit is contained in:
Michael Goulet
2025-04-08 06:09:04 +00:00
parent c5320454ed
commit d940038636
5 changed files with 9 additions and 9 deletions

View File

@@ -415,7 +415,7 @@ impl Subdiagnostic for RegionOriginNote<'_> {
label_or_note(span, fluent::trait_selection_subtype);
diag.arg("requirement", requirement);
diag.note_expected_found(&"", expected, &"", found);
diag.note_expected_found("", expected, "", found);
}
RegionOriginNote::WithRequirement { span, requirement, expected_found: None } => {
// FIXME: this really should be handled at some earlier stage. Our