mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 22:53:28 +00:00
Don't assume DAG
This commit is contained in:
parent
6daa6d5ffe
commit
6d2a04250c
@ -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 New Issue
Block a user