mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-29 12:04:20 +00:00
Gracefully handle `AnonConst` in `diagnostic_hir_wf_check()` Instead of running the WF check on the `AnonConst` itself we run it on the `ty` of the generic param of which the `AnonConst` is the default value. Fixes #122199
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.