Hang with weird recursive associated type #104230
Labels
C-bug
Category: This is a bug.
I-compiletime
Issue: Problems and improvements with respect to compile times.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Found by mutating src/test/ui/closures/issue-41366.rs with a modified fuzz-rustc
Code
This hangs the compiler:
Suspicious recursion
If I decrease the recursion limit with
#![recursion_limit = "16"]
, it finishes in 4 seconds with E0275:Error output with low recursion limit
This also allows the use of
-Z time-passes
, which reveals that the slowness is duringwf_checking
.Regression
Regression in nightly-2021-08-26, likely with #85499 (@jackh726)
Commits in range
Previously, it complained of an unsized type:
Error output before 2021-08-26
Version
@rustbot label +I-hang +I-compiletime
The text was updated successfully, but these errors were encountered: