Skip to content

Regression rust ICE involving const generic expressions and rayon. #150162

@GuillaumeDIDIER

Description

@GuillaumeDIDIER

I got a regression building some of my PhD tooling.

The bug has been reproduced on a rust playground, cf #150162 (comment) (it could perhaps still be minimised further to remove the rayon dependency)

I do note that I use generic_const_exprs, which is known for its instability.

I have identified that the bug doesn't occur on nightly-2025-10-10, I'll bisect the start of the issue.

Code

See #150162 (comment)

https://play.rust-lang.org/?version=nightly&mode=release&edition=2024&gist=05f0c7faa14b351d2ca03482a32904da

Meta

rustc --version --verbose:

rustc 1.94.0-nightly (fcf67da03 2025-12-18)
binary: rustc
commit-hash: fcf67da039f42e3905cf6f69e33304299c45149f
commit-date: 2025-12-18
host: x86_64-unknown-linux-gnu
release: 1.94.0-nightly
LLVM version: 21.1.8

Error output

rustc-ice-2025-12-19T15_02_28-2676931.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleF-generic_const_exprs`#![feature(generic_const_exprs)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions