Compiler stack overflow when calling function on generic struct with TAIT resolving to lambda #136390
Labels
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Compilation succeeds.
Instead, this happened: Compiler crashes with a stack overflow, although only in debug mode.
I ran this through
cargo bisect-rustc
and got the following:Regression in rust-lang-ci@89bc42c
The PR introducing the regression in this rollup is #134081: Try to evaluate constants in legacy mangling
searched nightlies: from nightly-2024-10-11 to nightly-2025-02-01
regressed nightly: nightly-2024-12-15
searched commit range: 327c7ee...0aeaa5e
regressed commit: f1ec5d6
bisected with cargo-bisect-rustc v0.6.9
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
I am guessing that the TAIT being in the symbol path of
new
messes something up with creating the mangled symbol name.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: