Compiler (effectively) hangs, regression from overflow error #93774
Labels
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
I-compiletime
Issue: Problems and improvements with respect to compile times.
P-high
High priority
perf-regression
Performance regression.
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
hangs since
1.56
error on
1.55
@rustbot label I-hang, regression-from-stable-to-stable, A-traits, A-lifetimes, E-needs-bisection, T-compiler
Edit:
“Hangs” means “runs for a wile on 100% CPU until I cancel it”. Who knows if it would ever terminate… actually, maybe I should test smaller recursion limits.
Note that this code example is not expected to compile successfully. Here’s a version that works / with the mistakes fixed. (The fixed version also works on some older Rust versions, including
1.55
and older.)Edit2: Using smaller limits (like… around
#![recursion_limit = "14"]
it starts getting unbearably slow) reveals that this is apparently more like exponential-time slowdown rather than “actual” hanging.@rustbot label -I-hang, +I-compiletime, +perf-regression
The text was updated successfully, but these errors were encountered: