Exponential type/trait-checking behavior from linearly nested iterator adapters. #54175
Labels
A-trait-system
Area: Trait system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-compiletime
Issue: Problems and improvements with respect to compile times.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following test takes an exponential amount of time to type-check the body of
huge
(at the time of this writing, reported by-Z time-passes
under "item-types checking"):This has been reduced from an ambiguity-aware parse tree visitor, and you can see a partial reduction here: https://gist.github.com/eddyb/5f20b8f48b68c92f7d4f022a18c374f4#file-repro-rs.
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: