1
Fork 0
rust/compiler/rustc_mir_build
Esteban Küber 05c39438e2 Account for for<'a> types when checking for non-structural type in constant as pattern
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.
2025-01-11 01:10:29 +00:00
..
src Account for for<'a> types when checking for non-structural type in constant as pattern 2025-01-11 01:10:29 +00:00
Cargo.toml mir_build: check annotated functions w/out callers 2025-01-10 18:37:57 +00:00
messages.ftl mir_build: check annotated functions w/out callers 2025-01-10 18:37:57 +00:00