fix: bugs

This commit is contained in:
Shunsuke Shibayama 2023-05-13 16:14:34 +09:00
parent 33e1b776cb
commit ced04e5d6a
8 changed files with 71 additions and 65 deletions

View file

@ -209,7 +209,7 @@ impl<Checker: BuildRunnable> Server<Checker> {
let mut imports = vec![];
if let Some(IncompleteArtifact {
object: Some(hir), ..
}) = self.artifacts.get(target)
}) = self.artifacts.get(target).map(|r| &r.artifact)
{
for chunk in hir.module.iter() {
imports.extend(Self::extract_import_symbols(chunk, needle_module_name));