about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-11 12:27:15 +0000
committerbors <bors@rust-lang.org>2024-03-11 12:27:15 +0000
commitd255c6a57c393db6221b1ff700daea478436f1cd (patch)
treeb698b3e447b36372ac278a8c3a0f7a8f9d3aa2f4 /compiler/rustc_interface/src
parente919669d42dfb8950866d4cb268c5359eb3f7c54 (diff)
parent5bcb66cfb36d19b84ff51cf923c1d3536d446281 (diff)
downloadrust-d255c6a57c393db6221b1ff700daea478436f1cd.tar.gz
rust-d255c6a57c393db6221b1ff700daea478436f1cd.zip
Auto merge of #122305 - Nilstrieb:target-tiers, r=davidtwco
Add metadata to targets

follow up to #121905 and #122157

This adds four pieces of metadata to every target:
- description
- tier
- host tools
- std

This information is currently scattered across target docs and both
- not machine readable, making validation harder
- sometimes subtly encoding by the table it's in, causing mistakes and making it harder to review changes to the properties

By putting it in the compiler, we improve this. Later, we will use this canonical information to generate target documentation from it.

I used find-replace for all the `description: None`.

One thing I'm not sure about is the behavior for the JSON. It doesn't really make sense that custom targets supply this information, especially the tier. But for the roundtrip tests, we do need to print and parse it. Maybe emit a warning when a custom target provides the metadata key? Either way, I don't think that's important right now, this PR should get merged ASAP or it will conflict all over the place.

r? davidtwco
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions