Report duplicate definitions in trait impls during resolution.

This commit is contained in:
Camille GILLOT 2022-08-10 21:31:26 +02:00
parent 8796e7a9cf
commit 152cd63226
11 changed files with 142 additions and 30 deletions

View file

@ -236,6 +236,8 @@ enum ResolutionError<'a> {
trait_item_span: Span,
code: rustc_errors::DiagnosticId,
},
/// Error E0201: multiple impl items for the same trait item.
TraitImplDuplicate { name: Symbol, trait_item_span: Span, old_span: Span },
/// Inline asm `sym` operand must refer to a `fn` or `static`.
InvalidAsmSym,
}