-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
ICE: thir_body queried for type_const (via cfg_attr) #151273
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-min_generic_const_args`#![feature(min_generic_const_args)]``#![feature(min_generic_const_args)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some wayThis issue requires a build of rustc or tooling with debug-assertions in some way
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-min_generic_const_args`#![feature(min_generic_const_args)]``#![feature(min_generic_const_args)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some wayThis issue requires a build of rustc or tooling with debug-assertions in some way
Type
Fields
Give feedbackNo fields configured for issues without a type.
I found this with the following code:
If one gets rid of the
cfg_attrto just#[type_const]builds just fine. Also no issue if the feature flag is off.Build Command:
rustc test.rs --cfg 'feature="some_feature"'rustc-ice-2026-01-17T22_27_14-1367133.txt
@rustbot label +F-min_generic_const_args +C-bug +I-ICE +T-compiler +requires-debug-assertions