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:
commit
b9a3952479
7 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue