Expose ability names

This commit is contained in:
Ayaz Hafiz 2022-05-12 08:57:16 -04:00
parent 95395ffc5f
commit 1beb0551cb
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 19 additions and 4 deletions

View file

@ -518,8 +518,16 @@ pub fn canonicalize_module_defs<'a>(
aliases.insert(symbol, alias);
}
for member in scope.abilities_store.root_ability_members().keys() {
exposed_but_not_defined.remove(member);
for (ability, members) in scope
.abilities_store
.iter_abilities()
.filter(|(ab, _)| ab.module_id() == home)
{
exposed_but_not_defined.remove(&ability);
members.iter().for_each(|member| {
debug_assert!(member.module_id() == home);
exposed_but_not_defined.remove(member);
});
}
// By this point, all exposed symbols should have been removed from