1
Fork 0

Simplify error reporting.

This commit is contained in:
Camille GILLOT 2022-01-08 14:49:38 +01:00
parent 8b2409cd7d
commit 554aceba49
3 changed files with 42 additions and 38 deletions

View file

@ -258,6 +258,14 @@ enum ResolutionError<'a> {
SelfInGenericParamDefault,
/// Error E0767: use of unreachable label
UnreachableLabel { name: Symbol, definition_span: Span, suggestion: Option<LabelSuggestion> },
/// Error E0323, E0324, E0325: mismatch between trait item and impl item.
TraitImplMismatch {
name: Symbol,
kind: &'static str,
trait_path: String,
trait_item_span: Span,
code: rustc_errors::DiagnosticId,
},
}
enum VisResolutionError<'a> {