Skip to content

ice: 'ty::Const::eval' called on a non-valtree-compatible type #116796

Closed
@matthiaskrgr

Description

@matthiaskrgr

File: /home/matthias/vcs/github/glacier2/fixed/icemaker_omni/1405E6412BA4B2706BCE4F1D8CF3AD39F9BF72F26CEA1DE9618621EFF2DB97B1.rs

auto-reduced (treereduce-rust):

struct X<const FN: fn() = { || {} }>;

original:

struct X<const FN: fn() = {
    || {}
}>;

Version information

rustc 1.75.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.75.0-dev
LLVM version: 17.0.2

Command:
/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)A-valtreeArea: Value trees or fixed by value treesC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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