Files
rust/tests/mir-opt/coroutine
Jacob Pratt d498abe6d3 Rollup merge of #158982 - cjgillot:pretty-ascribe-user-ty, r=davidtwco
Pretty-print MIR user types too.

`ty::UserType` is currently dumped in MIR using debug-printing of types. Unfortunately, this shows the inner index of DefIds, which can change between compilations depending on `cfg` flags.

This PR proposes to wire `ty::UserType` into the normal pretty-printing infra, which will give more readable outputs. This also adds a test, as we did not have any mir-opt case featuring non-None `user_self_ty`.

Exact formatting to bikeshed.
2026-07-13 05:52:57 -04:00
..
2026-05-31 11:36:44 +00:00