mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Don't add exposed modules to imported_modules
This commit is contained in:
parent
a663634e30
commit
8c40d72a1f
1 changed files with 0 additions and 12 deletions
|
@ -4573,18 +4573,6 @@ fn build_header<'a>(
|
||||||
module_id,
|
module_id,
|
||||||
);
|
);
|
||||||
deps_by_name.insert(pq_module_name, module_id);
|
deps_by_name.insert(pq_module_name, module_id);
|
||||||
|
|
||||||
// We should never change an entry here. Either we should have no entry,
|
|
||||||
// or if we do have one, it should be unchanged by this insertion.
|
|
||||||
debug_assert_eq!(
|
|
||||||
&loc_module_name.region,
|
|
||||||
imported_modules.get(&module_id).unwrap_or(&loc_module_name.region),
|
|
||||||
"Already had an imported_modules entry for {:?}, but it was {:?} rather than the expected {:?}",
|
|
||||||
module_id,
|
|
||||||
imported_modules.get(&module_id).unwrap(),
|
|
||||||
loc_module_name.region,
|
|
||||||
);
|
|
||||||
imported_modules.insert(module_id, loc_module_name.region);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue