about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-04-08 06:09:04 +0000
committerMichael Goulet <michael@errs.io>2025-04-08 06:09:04 +0000
commitd940038636c3694c896988c5cb035da4456a2cb0 (patch)
treee1ab59509a035b23a5fbbcc49b320f9f3271d27e /compiler/rustc_trait_selection/src/errors.rs
parentc5320454ed47736d17d1e07438e27345f08782bc (diff)
downloadrust-d940038636c3694c896988c5cb035da4456a2cb0.tar.gz
rust-d940038636c3694c896988c5cb035da4456a2cb0.zip
Remove unnecessary dyn Display in favor of str
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
-rw-r--r--compiler/rustc_trait_selection/src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/errors.rs b/compiler/rustc_trait_selection/src/errors.rs
index 9f7bfe5101a..bb4aba9d29e 100644
--- a/compiler/rustc_trait_selection/src/errors.rs
+++ b/compiler/rustc_trait_selection/src/errors.rs
@@ -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