mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-06 07:25:50 -04:00
9fa34499e3
rustdoc: Show use-site paths for unevaluated const array lengths After rust-lang/rust#158171, I noticed a few additional issues with the rendering of consts in rustdoc. This PR fixes them. When rendering array lengths, avoid inlining the full definition of unevaluated constants via `print_inlined_const`. Instead, fall back to `Const::to_string()` for use-site rendering, matching the behavior already used for projections without bodies. r? camelid