about summary refs log tree commit diff
path: root/tests/rustdoc-json/targets
AgeCommit message (Collapse)AuthorLines
2025-04-15rustdoc: Output target feature informationWill Glynn-0/+132
`#[target_feature]` attributes refer to a target-specific list of features. Enabling certain features can imply enabling other features. Certain features are always enabled on certain targets, since they are required by the target's ABI. Features can also be enabled indirectly based on other compiler flags. Feature information is ultimately known to `rustc`. Rather than force external tools to track it -- which may be wildly impractical due to `-C target-cpu` -- have `rustdoc` output `rustc`'s feature data.