about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-18 05:16:28 +0200
committerGitHub <noreply@github.com>2025-04-18 05:16:28 +0200
commite15cf92b670d48cc67e36795edbf780e92d7be71 (patch)
treed2d7b2a0517dc3a63932064120bf25d54a14bce5 /compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
parentc8a9095f0f57f7a482aed4e464ec284e8f98b37b (diff)
parent8c50f95cf088c6ccf882a152bd46c090efa3a1c7 (diff)
downloadrust-e15cf92b670d48cc67e36795edbf780e92d7be71.tar.gz
rust-e15cf92b670d48cc67e36795edbf780e92d7be71.zip
Rollup merge of #139393 - willglynn:rustdoc_output_target_feature_information, r=aDotInTheVoid
rustdoc-json: Output target feature information

`#[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.

This change is motivated by https://github.com/obi1kenobi/cargo-semver-checks/issues/1246, which intends to detect semver hazards caused by `#[target_feature]`.

try-job: aarch64-gnu
try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: aarch64-apple
Diffstat (limited to 'compiler/rustc_builtin_macros/src/deriving/generic/mod.rs')
0 files changed, 0 insertions, 0 deletions