Exponential compile time with broken huge nested enum #104162
Labels
C-bug
Category: This is a bug.
I-compiletime
Issue: Problems and improvements with respect to compile times.
Long ago, in #42747, an exponential compile time issue was fixed for huge nested enums.
Fuzzing discovered that deleting lines from src/test/ui/enum/issue-42747.rs, and thus introducing a resolve error, brings back exponential compile time.
Code
Where it's slow
The slow passes are
wf_checking
,item_bodies_checking
, andtype_check_crate
. Memory usage is also much higher than with the non-erroneous, original test.Note that the error is emitted much earlier, in
resolve_report_errors
.Output with -Z time-passes
Version
@rustbot label +I-compiletime
The text was updated successfully, but these errors were encountered: