mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
kill process when would hang
This commit is contained in:
parent
865eff1956
commit
124abc3620
2 changed files with 36 additions and 1 deletions
|
@ -2367,6 +2367,20 @@ fn update<'a>(
|
|||
}
|
||||
}
|
||||
Builtin { .. } | Interface { .. } => {
|
||||
let qualified_modules = header
|
||||
.package_qualified_imported_modules
|
||||
.iter()
|
||||
.filter(|pqim| match pqim {
|
||||
PackageQualified::Unqualified(_) => false,
|
||||
PackageQualified::Qualified(shorthand, _) => shorthand != &"",
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
assert!(
|
||||
qualified_modules.is_empty(),
|
||||
"package qualified modules not allowed in interfaces. Remove: {:#?} ",
|
||||
qualified_modules
|
||||
);
|
||||
|
||||
if header.is_root_module {
|
||||
debug_assert!(matches!(
|
||||
state.platform_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue