You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
thread 'rustc' has overflowed its stack
fatal runtime error: stack overflow
[1] 3823728 IOT instruction rustdoc
The text was updated successfully, but these errors were encountered:
matthiaskrgr
added
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
labels
Apr 20, 2023
…le, r=GuillaumeGomez
rustdoc: catch and don't blow up on impl Trait cycles
Fixesrust-lang#110629
An odd feature of Rust is that `Foo` is invalid, but `Bar` is okay:
type Foo<'a, 'b> = Box<dyn PartialEq<Foo<'a, 'b>>>;
type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>>;
To get it right, track every time rustdoc descends into a type alias, so if it shows up twice, it can be write the path instead of infinitely expanding it.
C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: no stack overflow since this compiles fine
Instead, this happened: stack overflow
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: