This commit is contained in:
Andrew Morris
2023-08-15 13:19:18 +10:00
parent f6cabc1ce8
commit 39a1bb7ce9
4 changed files with 8 additions and 7 deletions

View File

@@ -145,25 +145,25 @@ impl std::fmt::Display for FnMeta {
writeln!(
f,
" name: {},",
" name: {},",
serde_json::to_string(&self.name).expect("Failed json serialization")
)?;
match &self.content_hashable {
ContentHashable::Empty => {}
ContentHashable::Src(src_hash, deps) => {
writeln!(f, " srcHash: {},", src_hash)?;
writeln!(f, " srcHash: {},", src_hash)?;
writeln!(
f,
" deps: {},",
" deps: {},",
Array {
values: deps.clone()
}
)?;
}
ContentHashable::Content(content_hash) => {
writeln!(f, " contentHash: {},", content_hash)?;
writeln!(f, " contentHash: {},", content_hash)?;
}
}

View File

@@ -527,7 +527,7 @@ fn update_metadata(
}
}
_ => {
panic!("Expected sub_dep to be pointer or builtin")
panic!("Expected sub_dep to be pointer or builtin ({})", sub_dep)
}
}
}

View File

@@ -2017,7 +2017,7 @@ impl ScopeAnalysis {
for (_span, ref_) in self.refs.range(start..end) {
let name = self.names.get(&ref_.name_id).unwrap();
if let Value::Undefined | Value::Register(_) = &name.value {
if let Value::Register(_) = &name.value {
continue;
}