We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b475c7 commit 20499b9Copy full SHA for 20499b9
compiler/rustc_middle/src/mir/interpret/queries.rs
@@ -95,7 +95,10 @@ impl<'tcx> TyCtxt<'tcx> {
95
// used generic parameters is a bug of evaluation, so checking for it
96
// here does feel somewhat sensible.
97
if !self.features().generic_const_exprs && ct.substs.has_non_region_param() {
98
- assert!(matches!(self.def_kind(ct.def), DefKind::AnonConst));
+ assert!(matches!(
99
+ self.def_kind(ct.def),
100
+ DefKind::InlineConst | DefKind::AnonConst
101
+ ));
102
let mir_body = self.mir_for_ctfe(ct.def);
103
if mir_body.is_polymorphic {
104
let Some(local_def_id) = ct.def.as_local() else { return };
0 commit comments