-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rustc hangs with the next solver #155626
Copy link
Copy link
Open
Labels
C-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.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)The Rustc Trait System Refactor Initiative (-Znext-solver)needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Metadata
Metadata
Assignees
Labels
C-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.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)The Rustc Trait System Refactor Initiative (-Znext-solver)needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I’m not good at English. I’m sorry if this is hard to read.
When editing the short code described below in VSCode, it takes about 30 seconds for the tooltip contents to appear.
Informations
rust-analyzer version: 0.4.2871
rustc version: 1.95.0 (5980761 2026-04-14)
editor or extension: VSCode 1.116.0
relevant settings: all default
code snippet to reproduce: See below
Related issues
Before the tooltip content is displayed, only "Loading..." appears.
Posts rust-lang/rust-analyzer#15478 and rust-lang/rust-analyzer#17688 address similar performance issues.
Impact size
Many users may encounter this issue.
Because the target code contains several implementations that combine the following trait and type.
ImplTarget-HasSeveralImplsAnd before simplification, this was a combination of the following trait and type from
randcrate.Distribution-StandardUniformTherefore, the scope of impact is wide, but speed up workarounds exists (See comment in below code).
Code to reproduce