mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 01:44:15 +00:00
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