mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
hir_analysis: enums return `None` in `find_field` Fixes #121757. Unnamed union fields with enums are checked for, but if `find_field` causes an ICE then the compiler won't get to that point.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.