Segfault in evaluating associated trait constants for deeply nested types #93775
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code segfaults rustc (tested on rustc 1.60.0-nightly (5e57faa 2022-01-19) and rustc 1.58.1 (db9d1b2 2022-01-20)):
The type is nested 1000 times. Note that this only segfaults for associated constants. Functions are fine:
This successfully compiles and prints
1000
.The text was updated successfully, but these errors were encountered: