-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Note
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports.
Instead, open a dedicated issue for the specific matter or post in the #t-rustdoc Zulip channel.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
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 (rustdoc: Tracking issue for command-line option
--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