First pass at canonicalizing and reporting syntactic abilities

This commit is contained in:
Ayaz Hafiz 2022-07-18 12:39:31 -04:00
parent d118e5afbc
commit e672ce9ebd
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
7 changed files with 307 additions and 115 deletions

View file

@ -130,14 +130,20 @@ pub enum Problem {
},
AbilityUsedAsType(Lowercase, Symbol, Region),
NestedSpecialization(Symbol, Region),
IllegalDerive(Region),
ImplementationNotFound {
ability: Symbol,
member: Symbol,
region: Region,
},
IllegalClaimedAbility(Region),
NotAnAbilityMember {
ability: Symbol,
name: String,
region: Region,
},
OptionalAbilityImpl {
ability: Symbol,
region: Region,
},
QualifiedAbilityImpl {
region: Region,
},
AbilityImplNotIdent {
region: Region,
},
}