Stack overflow with impl Trait
and multiple lifetimes... and a closure.
#92833
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
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.
Seems to stack overflow (I think it's one... on Linux it does give "segfault", technically, and on Windows it produces "thread 'rustc' has overflowed its stack").
(Current nightly behaves like current stable.)
(playground)
Haven't tried much to minimize further yet, perhaps this can also be done, somehow, without using a closure?Nevermind, I removed the need for closures nowThe same code used to give various ICEs in older Rust versions, stack overflow seems to be since 1.57. I don't have time to investigate further today.
@rustbot label I-crash, A-impl-trait, A-lifetimes,
A-closures,T-compiler@rustbot label -A-closures
Labeling question: is
ICE -> crash
a regression?The text was updated successfully, but these errors were encountered: