rust/compiler/rustc_const_eval/src
Stuart Cook e25d7a898a
Rollup merge of #150799 - mcga, r=BoxyUwU
Fix ICE: can't type-check body of DefId  for issue #148729

This commit fixes https://github.com/rust-lang/rust/issues/148729 for min_const_generic_args https://github.com/rust-lang/rust/issues/132980.

It's pretty small PR. The first commit makes sure that the `type_const`s are made into normal consts in const expressions.

The next one just handles the case https://github.com/rust-lang/rust/issues/148729 of where the type of the const was omitted at which point it was trying to treat a `type_const` again as a regular const. That obviously will fail since a type_const does not have a body.

@rustbot label +F-associated_const_equality +F-min_generic_const_args +I-ICE
2026-01-11 14:27:56 +11:00
..
check_consts Fix ICE: can't type-check body of DefId, since type_consts don't have a body. 2026-01-09 14:45:33 -08:00
const_eval Add size information 2026-01-08 12:02:59 +00:00
interpret Compile-Time Reflection MVP: tuples 2026-01-08 11:41:00 +00:00
util codegen: implement repr(scalable) 2025-12-16 11:00:12 +00:00
errors.rs const validation: remove check for mutable refs in final value of const 2025-11-09 14:32:01 +01:00
lib.rs Remove deny of manual-let-else 2025-12-16 08:42:04 -08:00