Skip to content

Commit

Permalink
Disable cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 19, 2025
1 parent f08d04f commit d4c9a65
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ impl Data {
}

/// Traverse the graph and subtract usages from `used_names`.
#[allow(unused)]
fn subtract_cycles(&mut self) {
let edges = take(&mut self.edges);

Expand Down Expand Up @@ -1220,7 +1221,7 @@ fn merge_data(data: Arc<ThreadLocal<RefCell<Data>>>) -> Data {
merged.merge(data);
}

merged.subtract_cycles();
// merged.subtract_cycles();

merged
}
Expand Down Expand Up @@ -1284,7 +1285,7 @@ impl Merge for Data {
fn merge(&mut self, other: Self) {
self.used_names.merge(other.used_names);
self.entry_ids.extend(other.entry_ids);
self.edges.0.merge(other.edges.0);
// self.edges.0.merge(other.edges.0);
}
}

Expand Down

0 comments on commit d4c9a65

Please sign in to comment.