Merge pull request #579 from HigherOrderCO/578-undeclared-alias-crash

fix: remember to stop file processing on unknown alias
This commit is contained in:
Nicolas Abril 2023-06-05 17:19:47 +02:00 committed by GitHub
commit a495fa105f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,6 +324,10 @@ fn load_file_to_book(
failed |= expand_uses(&mut module, tx.clone());
failed |= expand_module(tx.clone(), &mut module);
if failed {
return failed;
}
let mut state = UnboundCollector::new(tx.clone(), false);
state.visit_module(&mut module);