Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typeck::check::coercion - roll back failed unsizing type vars
This wraps unsizing coercions within an additional level of `commit_if_ok`, which rolls back type variables if the unsizing coercion fails. This prevents a large amount of type-variables from accumulating while type-checking a large function, e.g. shaving 2GB off one of the 4GB peaks in #36799.
- Loading branch information