Add Inspect to builtin_module_with_unlisted_ability_impl

This commit is contained in:
Richard Feldman 2023-09-01 22:29:22 -04:00 committed by Brendan Hansknecht
parent d0841fb018
commit 00c27b087b
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -1394,11 +1394,14 @@ impl AbilityResolver for AbilitiesStore {
}
}
/// Whether this a module whose types' ability implementations should be checked via derive_key,
/// Whether this is a module whose types' ability implementations should be checked via derive_key,
/// because they do not explicitly list ability implementations due to circular dependencies.
#[inline]
pub(crate) fn builtin_module_with_unlisted_ability_impl(module_id: ModuleId) -> bool {
matches!(module_id, ModuleId::NUM | ModuleId::BOOL)
matches!(
module_id,
ModuleId::NUM | ModuleId::BOOL | ModuleId::INSPECT
)
}
#[derive(Debug)]