about summary refs log tree commit diff
path: root/library/std/src/process
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-11-29 01:35:20 +0000
committerbors <bors@rust-lang.org>2024-11-29 01:35:20 +0000
commitd6f88291f3ce96375683acc62d54710add042f98 (patch)
tree7506a74d7ef58cf8fb59e78f576b1f6fee3c950f /library/std/src/process
parentd53f0b1d8e261f2f3535f1cd165c714fc0b0b298 (diff)
parent77080d8eb359be41c696033d45e52f544ab9bd57 (diff)
downloadrust-d6f88291f3ce96375683acc62d54710add042f98.tar.gz
rust-d6f88291f3ce96375683acc62d54710add042f98.zip
Auto merge of #133409 - RalfJung:target-consistency, r=lcnr
ensure JSON-defined targets are consistent

We have a `check_consistency` check that ensures some invariants which (presumably) the rest of the compiler relies on. However, JSON targets can easily be written in a way that violates those invariants. So this PR applies the same consistency check to JSON targets that we already enforce for built-in targets.

I have converted many of the assertions in that function to new macros that show a nice error instead of a panic; if people are okay with the general approach here, I can do that for the rest of the checks as well.
Diffstat (limited to 'library/std/src/process')
0 files changed, 0 insertions, 0 deletions