Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Mark obligation forest nodes as "Done" after cycle checking them
This was lost in rust-lang#66405 , perhaps due to the added `dep_index >= min_index` check which attempts to avoid reprocessing in a different way. Unfortunately that does not cover the case where a node points to a higher index which can in degenerate cases where a lot of nodes point to a lot of higher indexed nodes end up with `O(N ^ 2)` complexity. With this fix restored it is `O(N)` again since nodes will never be reprocessed.
- Loading branch information