Change:
<ins> // build-pass // ignore-tidy-linelength // Regression for #93775, needs build-pass to test it. #![recursion_limit = "1000"] use std::marker::PhantomData; struct Z; struct S<T>(PhantomData<T>); type Nested = S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<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>>>>>>>>>>>>>>>>>>>>>>>>>>; trait AsNum { const NUM: u32; } impl AsNum for Z { const NUM: u32 = 0; } impl<T: AsNum> AsNum for S<T> { const NUM: u32 = T::NUM + 1; } fn main() { let _ = Nested::NUM; } </ins>

Discussion:
: <details<summary<strongBacktrace</strong</summary<p</p</details
this is not exactly ICE, but I did not find an appropriate variant for this
label -I-ICE +I-crash
searched nightlies: from nightly-2021-12-01 to nightly-2022-01-18 regressed nightly: nightly-2021-12-06 searched commits: from to regressed commit: cc
Looks like a stack overflow in . Needs a call to somewhere, probably at the end of around , although there might be a better spot. This will have perf implications, however.
Fixed by , marking as E-needs-test.