Reject implementations that don't point to abilities

This commit is contained in:
Ayaz Hafiz 2022-07-19 13:21:08 -04:00
parent a53de2e05c
commit 37ab06b0a3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 52 additions and 5 deletions

View file

@ -130,7 +130,7 @@ pub enum Problem {
},
AbilityUsedAsType(Lowercase, Symbol, Region),
NestedSpecialization(Symbol, Region),
IllegalClaimedAbility(Region),
IllegalDerivedAbility(Region),
ImplementationNotFound {
member: Symbol,
region: Region,
@ -154,6 +154,7 @@ pub enum Problem {
original: Region,
duplicate: Region,
},
NotAnAbility(Region),
}
#[derive(Clone, Debug, PartialEq)]