From 375f801b3e2cdb9dcdbf101016531bd2a33fbb7c Mon Sep 17 00:00:00 2001 From: Nicolas Abril Date: Mon, 5 Jun 2023 17:18:26 +0200 Subject: [PATCH] fix: remember to stop file processing on unknown alias --- crates/kind-driver/src/resolution.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/kind-driver/src/resolution.rs b/crates/kind-driver/src/resolution.rs index 1ab2f2735..527602837 100644 --- a/crates/kind-driver/src/resolution.rs +++ b/crates/kind-driver/src/resolution.rs @@ -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);