From 23ad6dc0901d95655726528f30593a9a9507c706 Mon Sep 17 00:00:00 2001 From: Eduardo Sandalo Porto Date: Mon, 10 Jun 2024 17:21:05 -0300 Subject: [PATCH] Fix function name change Co-authored-by: T6 --- src/ast.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ast.rs b/src/ast.rs index 25f52038..56db241c 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -571,13 +571,13 @@ impl Book { /// nodes in weird places. See HVM issue [#362](https://github.com/HigherOrderCO/HVM/issues/362) /// for an example. fn propagate_safety(&self, compiled_book: &mut hvm::Book, lookup: &BTreeMap) { - let rev_dependencies = self.direct_dependents(); + let dependents = self.direct_dependents(); let mut stack: Vec<&str> = Vec::new(); for (name, _) in self.defs.iter() { let def = &mut compiled_book.defs[lookup[name] as usize]; if !def.safe { - for next in rev_dependencies[name.as_str()].iter() { + for next in dependents[name.as_str()].iter() { stack.push(next); } } @@ -592,7 +592,7 @@ impl Book { def.safe = false; - for &next in rev_dependencies[curr].iter() { + for &next in dependents[curr].iter() { stack.push(next); } }