Files
rust/tests/ui/const-generics/generic_const_exprs
Jacob Pratt 402748551a Rollup merge of #154595 - mu001999-contrib:fix/154539, r=BoxyUwU
Emit fatal on invalid const args with nested defs

Fixed https://github.com/rust-lang/rust/issues/123629
Fixes https://github.com/rust-lang/rust/issues/154539

Invalid const args are rejected, so their surrounding HIR is not preserved. But nested defs inside them can still get created, leaving children lowered without a valid HIR parent and causing an ICE when later error handling walks HIR parents.

r? @BoxyUwU
2026-04-16 01:54:05 -04:00
..
2025-06-11 15:30:15 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-02-14 00:37:23 +01:00
2025-02-14 00:37:23 +01:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2025-06-11 15:30:15 +01:00
2025-05-21 20:20:19 +01:00