Skip to content

Commit 0321de2

Browse files
committed
Remove bogus {code} attributes on TraitImplMismatch.
This makes no sense, and has no effect. I suspect it's been confused with a `code = "{code}"` attribute on a subdiagnostic suggestion, where it is valid (but the "code" there is suggested source code, rather than an error code.)
1 parent d91d164 commit 0321de2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_resolve/src/errors.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ pub(crate) struct UnreachableLabelSubLabelUnreachable {
456456
}
457457

458458
#[derive(Diagnostic)]
459-
#[diag(resolve_trait_impl_mismatch, code = "{code}")]
459+
#[diag(resolve_trait_impl_mismatch)]
460460
pub(crate) struct TraitImplMismatch {
461461
#[primary_span]
462462
#[label]
@@ -466,7 +466,6 @@ pub(crate) struct TraitImplMismatch {
466466
#[label(resolve_label_trait_item)]
467467
pub(crate) trait_item_span: Span,
468468
pub(crate) trait_path: String,
469-
pub(crate) code: String,
470469
}
471470

472471
#[derive(Diagnostic)]

0 commit comments

Comments
 (0)