mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
Don't assume DAG
This commit is contained in:
parent
6daa6d5ffe
commit
6d2a04250c
1 changed files with 0 additions and 2 deletions
|
@ -762,7 +762,6 @@ impl TransitiveRelation {
|
|||
|
||||
fn reachable_from(&self, a: mir::Local, domain_size: usize) -> HybridBitSet<mir::Local> {
|
||||
let mut seen = HybridBitSet::new_empty(domain_size);
|
||||
seen.insert(a);
|
||||
let mut stack = vec![a];
|
||||
while let Some(u) = stack.pop() {
|
||||
if let Some(edges) = self.relations.get(&u) {
|
||||
|
@ -773,7 +772,6 @@ impl TransitiveRelation {
|
|||
}
|
||||
}
|
||||
}
|
||||
seen.remove(a);
|
||||
seen
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue