mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
05c39438e2
When we encounter a constant in a pattern, we check if it is non-structural. If so, we check if the type implements `PartialEq`, but for types with escaping bound vars the check would be incorrect as is, so we break early. This is ok because these types would be filtered anyways. Fix #134764.