-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
rustc hang in Rust for Linux #157516
Copy link
Copy link
Open
Labels
A-rust-for-linuxRelevant for the Rust-for-Linux projectRelevant for the Rust-for-Linux projectA-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.Fixed by the next-generation trait solver, `-Znext-solver`.
Metadata
Metadata
Assignees
Labels
A-rust-for-linuxRelevant for the Rust-for-Linux projectRelevant for the Rust-for-Linux projectA-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.Fixed by the next-generation trait solver, `-Znext-solver`.
Type
Fields
Give feedbackNo fields configured for issues without a type.
(Using the new trait solver does not make it hang anymore. I guess it may be a well-known issue with the old one, but I decided to file it for reference.)
I tried this code:
I expected to see this happen: a compile error.
Instead, this happened: the compiler hangs or gets OOM-killed.
Live: https://godbolt.org/z/e166xq4qo
Original report: https://rust-for-linux.zulipchat.com/#narrow/channel/291565-Help/topic/Do.20we.20have.20anyone.20for.20helping.20triage.20rust.20tooling.20bugs.3F/near/600770020
Meta
rustc --version --verbose:It also triggers in e.g. current stable (1.96.0).