mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Merge pull request #4090 from roc-lang/i4084
Properly import builtin modules in platforms
This commit is contained in:
commit
f4e77a9e38
3 changed files with 58 additions and 8 deletions
|
@ -796,6 +796,12 @@ macro_rules! define_builtins {
|
|||
)+
|
||||
num_modules: $total:literal
|
||||
} => {
|
||||
impl<'a> super::ident::QualifiedModuleName<'a> {
|
||||
pub fn is_builtin(&self) -> bool {
|
||||
self.opt_package.is_none() && ($($module_name == self.module.as_str() ||)+ false)
|
||||
}
|
||||
}
|
||||
|
||||
impl IdentIds {
|
||||
pub fn exposed_builtins(extra_capacity: usize) -> IdentIdsByModule {
|
||||
let mut exposed_idents_by_module = VecMap::with_capacity(extra_capacity + $total);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue