mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Merge pull request #5788 from roc-lang/revert
Revert "glue: find platform main file"
This commit is contained in:
commit
a616b61503
1 changed files with 1 additions and 7 deletions
|
@ -340,6 +340,7 @@ pub fn load_types(
|
|||
let function_kind = FunctionKind::LambdaSet;
|
||||
let arena = &Bump::new();
|
||||
let LoadedModule {
|
||||
module_id: home,
|
||||
mut can_problems,
|
||||
mut type_problems,
|
||||
mut declarations_by_id,
|
||||
|
@ -371,13 +372,6 @@ pub fn load_types(
|
|||
}
|
||||
});
|
||||
|
||||
// find the platform's main module
|
||||
let home = declarations_by_id
|
||||
.keys()
|
||||
.find(|id| format!("{id:?}").trim_start_matches("pf.").is_empty())
|
||||
.copied()
|
||||
.unwrap();
|
||||
|
||||
let decls = declarations_by_id.remove(&home).unwrap();
|
||||
let subs = solved.inner_mut();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue