Files
rust/compiler/rustc_const_eval
Guillaume Gomez f791d707db Rollup merge of #159504 - RalfJung:generic-in-pat, r=BoxyUwU,Nadrieril
Abort const-eval queries early when there are generics in the type

Since [recently](https://github.com/rust-lang/rust/pull/156977), const validation has a `has_param` check, which means ConstToPat also implicitly has that check. But it seems better to check this again explicitly here rather then rely on an undocumented property of some other component. The new test behaves the same with or without the PR.

I recommend hiding whitespace difference, since rustfmt re-indendet a bunch of stuff.
Fixes https://github.com/rust-lang/rust/issues/150296
r? @BoxyUwU
2026-07-23 00:29:23 +02:00
..