Rollup merge of #122157 - dpaoliello:targetdesc, r=Nilstrieb

Add the new description field to Target::to_json, and add descriptions for some MSVC targets

The original PR to add a `description` field to `Target` (<https://github.com/rust-lang/rust/pull/121905>) didn't add the field to `Target::to_json`, which meant that the `check_consistency` testwould fail if you tried to set a description as it wouldn't survive round-tripping via JSON: 2237005253 (step):27:4967

This change adds the field to `Target::to_json`, and sets some descriptions to verify that it works correctly.
This commit is contained in:
Matthias Krüger 2024-03-08 21:02:01 +01:00 committed by GitHub
commit b9a3952479
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 6 deletions

View file

@ -3253,6 +3253,7 @@ impl ToJson for Target {
}
target_val!(llvm_target);
target_val!(description);
d.insert("target-pointer-width".to_string(), self.pointer_width.to_string().to_json());
target_val!(arch);
target_val!(data_layout);