Open
Description
This is a tracking issue for the rustdoc show-type-layout
/show_type_layout
feature. This displays the layout layout (size & alignment) of types in the documentation.
This feature was formerly known as document_type_layout
Usage is described at rustdoc unstable features
Zulip thread for discussion: https://rust-lang.zulipchat.com/#narrow/stream/266220-t-rustdoc/topic/Rustdoc.20.60show-type-layout.60.20feature
Steps
- Implement the feature: rustdoc: Add unstable CLI option to show basic type layout information #83501
- Resolve any issues
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- Exact display output needs work
- How to handle layouts that differ by target (Tracking Issue for rustdoc
show-type-layout
#113248 (comment)) - Handling of generic types, if any (option to select the generic type somehow or specify its layout? Seems tricky but maybe useful)
Implementation history
- Initial implementation: rustdoc: Add unstable CLI option to show basic type layout information #83501
@rustbot label +T-rustdoc