Exponential parse time involving recover_const_arg
#103620
Labels
C-bug
Category: This is a bug.
I-compiletime
Issue: Problems and improvements with respect to compile times.
Uh oh!
There was an error while loading. Please reload this page.
This code takes minutes to parse:
The output (with
--error-format=short
) includes:where each error takes significantly longer to produce than the previous.
Where it's slow
According to
-Z time-passes
, the slow pass isparse_crate
.sample-head-103620.txt
handle_ambiguous_unbraced_const_arg
andrecover_const_arg
repeatedly on the stack is sus.Impact
This input is nonsense, so it's possible the only impact of the issue is slowing down fuzzing, very slightly.
Version
rustc --version --verbose
:Regression
Regression in nightly-2020-10-28
@rustbot label +I-compiletime
The text was updated successfully, but these errors were encountered: