Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6d2a042

Browse files
committed
Don't assume DAG
1 parent 6daa6d5 commit 6d2a042

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clippy_lints/src/redundant_clone.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ impl TransitiveRelation {
762762

763763
fn reachable_from(&self, a: mir::Local, domain_size: usize) -> HybridBitSet<mir::Local> {
764764
let mut seen = HybridBitSet::new_empty(domain_size);
765-
seen.insert(a);
766765
let mut stack = vec![a];
767766
while let Some(u) = stack.pop() {
768767
if let Some(edges) = self.relations.get(&u) {
@@ -773,7 +772,6 @@ impl TransitiveRelation {
773772
}
774773
}
775774
}
776-
seen.remove(a);
777775
seen
778776
}
779777
}

0 commit comments

Comments
 (0)