mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Add Inspect to builtin_module_with_unlisted_ability_impl
This commit is contained in:
parent
d0841fb018
commit
00c27b087b
1 changed files with 5 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue