Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid redundant traversal of uses when collecting upper bounds for au…
…tocomplete Summary: `upper_bound_t_of_t` collects types found in UseT upper bounds starting at some tvar. This change keeps track of tvars we've already unwrapped during the traversal. Without a seen set, we might add the upper bounds of a given tvar multiple times. At worst, there is some cycle in the graph and we have non-termination. Reviewed By: panagosg7 Differential Revision: D30314813 fbshipit-source-id: 1868bf3c034a029045b20498ebe71f241d108bc3
- Loading branch information