-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #94921 - aDotInTheVoid:rustdoc-json-format-cleanup, r=C…
…raftSpider rustdoc-json: Clean Up json format No semantic changes, but better names Closes #94198 Closes #94889 r? `@CraftSpider` `@rustbot` modify labels: +A-rustdoc-json +T-rustdoc +C-cleanup
- Loading branch information
Showing
6 changed files
with
49 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#![feature(no_core)] | ||
#![no_core] | ||
|
||
// @set wham = implementors.json "$.index[*][?(@.name=='Wham')].id" | ||
// @count - "$.index[*][?(@.name=='Wham')].inner.implementations[*]" 1 | ||
// @set gmWham = - "$.index[*][?(@.name=='Wham')].inner.implementations[0]" | ||
pub trait Wham {} | ||
|
||
// @count - "$.index[*][?(@.name=='GeorgeMichael')].inner.impls[*]" 1 | ||
// @is - "$.index[*][?(@.name=='GeorgeMichael')].inner.impls[0]" $gmWham | ||
// @set gm = - "$.index[*][?(@.name=='Wham')].id" | ||
|
||
// jsonpath_lib isnt expressive enough (for now) to get the "impl" item, so we | ||
// just check it isn't pointing to the type, but when you port to jsondocck-ng | ||
// check what the impl item is | ||
// @!is - "$.index[*][?(@.name=='Wham')].inner.implementations[0]" $gm | ||
pub struct GeorgeMichael {} | ||
|
||
impl Wham for GeorgeMichael {} |