Store derivable ability members statically

This commit is contained in:
Ayaz Hafiz 2022-07-19 16:52:32 -04:00
parent 10001876bb
commit 6035e45f25
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 13 additions and 9 deletions

View file

@ -733,7 +733,7 @@ fn canonicalize_opaque<'a>(
.map(|(member, def)| (member, def.value))
.collect(),
});
} else if ability.is_builtin_ability() {
} else if ability.is_derivable_ability() {
derived_abilities.push(Loc::at(region, ability));
supported_abilities.push(OpaqueSupports::Derived(ability));
} else {