fix: trait impl bugs (2)

This commit is contained in:
Shunsuke Shibayama 2024-12-27 01:14:19 +09:00
parent 017b13f07b
commit 40b53a3e81
4 changed files with 61 additions and 25 deletions

View file

@ -171,7 +171,7 @@ impl SharedPromises {
}
pub fn wait_until_finished(&self, path: &NormalizedPathBuf) {
if self.promises.borrow().get(path).is_none() {
if !self.graph.entries().contains(path) {
panic!("not registered: {path}");
}
while !self.is_finished(path) {