mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Get rid of ExposedByModule::remove for now
This commit is contained in:
parent
16e64263f6
commit
b377155acd
1 changed files with 5 additions and 4 deletions
|
@ -484,12 +484,13 @@ fn start_phase<'a>(
|
|||
abilities_store,
|
||||
} = found_specializations;
|
||||
|
||||
// Safety: by this point every module should have been solved, so there is no need
|
||||
// for our exposed types anymore, but the world does need them.
|
||||
let our_exposed_types = unsafe { state.exposed_types.remove(&module_id) }
|
||||
let our_exposed_types = state
|
||||
.exposed_types
|
||||
.get(&module_id)
|
||||
.unwrap_or_else(|| {
|
||||
internal_error!("Exposed types for {:?} missing", module_id)
|
||||
});
|
||||
})
|
||||
.clone();
|
||||
|
||||
// Add our abilities to the world.
|
||||
state.world_abilities.insert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue