mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 13:28:48 +00:00

Fix cycle when debug-printing opaque types from RPITIT
Extend #66594 to opaque types from RPITIT.
Before this PR, enabling debug logging like `RUSTC_LOG="[check_type_bounds]"` for code containing RPITIT produces a query cycle of `explicit_item_bounds`, as pretty printing for opaque type calls [it](d9a4a47b8b/compiler/rustc_middle/src/ty/print/pretty.rs (L1001)
).
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.