Repository navigation
Closed
Labels
C-bugCategory: This is a bug.F-gca_min_const_items`#![feature(gca_min_const_items)]` (previously: `min_generic_const_args`)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.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way
Description
auto-reduced (treereduce-rust):
#![feature(gca_macroless_items, gca_min_const_items)]
struct S;
trait A {
const DEFAULT: Option<Self> = None::<()>;
}
impl A for S {}
fn f() {
let t: Option<S> = A::DEFAULT;
}original:
#![feature(import_trait_associated_functions)]
#![feature(gca_macroless_items, gca_min_const_items)]
#![feature(gca_macroless_args)]
#![feature(associated_type_defaults)]
struct S;
trait A {
#[rustc_always_gca]
const DEFAULT: Option<Self> = None::<()>;
}
impl A for S {}
fn f() {
let t: Option<S> = A::DEFAULT;
}
fn main() {}Version information
rustc 1.101.0-nightly (2d20b42b8 2026-11-04)
binary: rustc
commit-hash: 2d20b42b883dcfc014f3c2c56081eeb6091c2179
commit-date: 2026-11-04
host: x86_64-unknown-linux-gnu
release: 1.101.0-nightly
LLVM version: 23.1.5
Possibly related line of code:
rust/compiler/rustc_middle/src/ty/context.rs
Lines 2357 to 2369 in 2d20b42
| DefKind::Trait | DefKind::Impl { of_trait: true } | |
| ); | |
| } | |
| ty::AliasTermKind::InherentConstSelf { def_id } | |
| | ty::AliasTermKind::InherentConstImpl { def_id } => { | |
| debug_assert_matches!(self.def_kind(def_id), DefKind::AssocConst); | |
| debug_assert_matches!( | |
| self.def_kind(self.parent(def_id)), | |
| DefKind::Impl { of_trait: false } | |
| ); | |
| } | |
| ty::AliasTermKind::FreeConst { def_id } => { | |
| debug_assert_matches!(self.def_kind(def_id), DefKind::Const); |
Command:
/home/matthias/.rustup/toolchains/alt-master/bin/rustc
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.F-gca_min_const_items`#![feature(gca_min_const_items)]` (previously: `min_generic_const_args`)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.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way
Activity
matthiaskrgr commentedon Nov 4, 2026
Program output
@rustbot label +F-import_trait_associated_functions +F-gca_macroless_items +F-gca_min_const_items +F-gca_macroless_args +F-associated_type_defaults
rustbot commentedon Nov 4, 2026
Error: Unknown labels: F-gca_macroless_args, F-gca_macroless_items
Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.
Rollup merge of rust-lang#165613 - lapla-cogito:issue_165471, r=khyperia
Rollup merge of rust-lang#165613 - lapla-cogito:issue_165471, r=khyperia
Unrolled build for #165613 in rollup 166059
Rollup merge of #165613 - lapla-cogito:issue_165471, r=khyperia
Rollup merge of #165613 - lapla-cogito:issue_165471, r=khyperia