Remove unnecessary dyn Display in favor of str
This commit is contained in:
parent
c5320454ed
commit
d940038636
5 changed files with 9 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue