mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-25 14:41:47 +00:00
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.