Skip to content

rustc hangs when compiling varisat (-Znext-solver) #161575

Description

@lcnr

Not sure if I should file a separate issue or not. Here is the minimized reproducer we saw in rust-lang/cargo's CI failure with the crate varisat:

/tmp/repro.rs

---cargo
[package]
edition = "2024"

[dependencies]
varisat = "=0.2.2"
---

fn main() {
    let _solver = varisat::Solver::new();
}

And run it

# this got stuck
cargo +nightly-2026-08-22 -Zscript check --manifest-path /tmp/repro.rs

# this succeeded
env RUSTFLAGS="-Znext-solver=coherence" cargo +nightly-2026-08-22 -Zscript check --manifest-path /tmp/repro.rs

# this succeeded
cargo +nightly-2026-08-21 -Zscript check --manifest-path /tmp/repro.rs

# this got stuck
env RUSTFLAGS="-Znext-solver=globally" cargo +nightly-2026-08-21 -Zscript check --manifest-path /tmp/repro.rs

Originally posted by @weihanglo in #160895

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions