diff --git a/crates/erg_compiler/link_hir.rs b/crates/erg_compiler/link_hir.rs index 1a563a0a5..6b04006b7 100644 --- a/crates/erg_compiler/link_hir.rs +++ b/crates/erg_compiler/link_hir.rs @@ -216,7 +216,7 @@ impl<'a> HIRLinker<'a> { Self::resolve_pymod_path(chunk); } } - Expr::Import(_) => unreachable!(), + Expr::Import(_) => {} Expr::Dummy(_) => {} } }