diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-08 06:09:04 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-08 06:09:04 +0000 | 
| commit | d940038636c3694c896988c5cb035da4456a2cb0 (patch) | |
| tree | e1ab59509a035b23a5fbbcc49b320f9f3271d27e /compiler/rustc_errors/src/diagnostic.rs | |
| parent | c5320454ed47736d17d1e07438e27345f08782bc (diff) | |
| download | rust-d940038636c3694c896988c5cb035da4456a2cb0.tar.gz rust-d940038636c3694c896988c5cb035da4456a2cb0.zip | |
Remove unnecessary dyn Display in favor of str
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic.rs')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 794502d7aae..bd13c413a4d 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -647,9 +647,9 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> { #[rustc_lint_diagnostics] pub fn note_expected_found( &mut self, - expected_label: &dyn fmt::Display, + expected_label: &str, expected: DiagStyledString, - found_label: &dyn fmt::Display, + found_label: &str, found: DiagStyledString, ) -> &mut Self { self.note_expected_found_extra( @@ -665,9 +665,9 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> { #[rustc_lint_diagnostics] pub fn note_expected_found_extra( &mut self, - expected_label: &dyn fmt::Display, + expected_label: &str, expected: DiagStyledString, - found_label: &dyn fmt::Display, + found_label: &str, found: DiagStyledString, expected_extra: DiagStyledString, found_extra: DiagStyledString, | 
