Skip to content

rustdoc: hang/OOM with recursive type  #102910

Open
@matthiaskrgr

Description

@matthiaskrgr

I tried this code from tests/ui/recursion/issue-38591-non-regular-dropck-recursion.rs

struct S<T> {
    t: T,
    s: Box<S<fn(u: T)>>,
}

fn f(x: S<u32>) {}

fn main() {
    // Force instantiation.
    f as fn(_);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-destructorsArea: Destructors (`Drop`, …)C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions