Exponential compilation time on chained "invalid left-hand side of assignment" #103219
Labels
C-bug
Category: This is a bug.
I-compiletime
Issue: Problems and improvements with respect to compile times.
This invalid code takes about 8 seconds to (not) compile:
Each added
1=
doubles the compilation time. Memory use also grows, although not as quickly.Found by fuzzing with a modified fuzz-rustc.
What is slow
Compiling with
-Z time-passes
says the slow pass isitem_bodies_checking
.Full output with -Z time-passes
Output from
sample
suggests that the problem involves the co-recursion between two functions inrustc_hir_analysis/
: check_expr_kind and check_expr_with_expectation_and_args.Meta
rustc --version --verbose
:@rustbot label +I-compiletime
The text was updated successfully, but these errors were encountered: