-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsondoclint: Recognise Typedef as valid kind for Type::ResolvedPath
Closes #104851
- Loading branch information
1 parent
41e0363
commit eac8921
Showing
3 changed files
with
20 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Regression test for <https://github.com/rust-lang/rust/issues/104851> | ||
|
||
/// @set foo = "$.index[*][?(@.name=='Foo')].id" | ||
pub type Foo = i32; | ||
|
||
// @is "$.index[*][?(@.name=='demo')].inner.decl.output.kind" '"resolved_path"' | ||
// @is "$.index[*][?(@.name=='demo')].inner.decl.output.inner.id" $foo | ||
pub fn demo() -> Foo { | ||
42 | ||
} |
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