diff options
| author | Michael Howell <michael@notriddle.com> | 2023-02-28 18:17:59 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-03-20 22:41:57 -0700 |
| commit | e600c0ba0e0b8153e68c4cead3d92b2c52ca8914 (patch) | |
| tree | 2edcba6db60fd0dd0580249843ae57fc37c67de9 /tests/rustdoc-js/generics-impl.js | |
| parent | 3ff4d56650bf5f7a57d11f3666fb429f0b00b18f (diff) | |
| download | rust-e600c0ba0e0b8153e68c4cead3d92b2c52ca8914.tar.gz rust-e600c0ba0e0b8153e68c4cead3d92b2c52ca8914.zip | |
rustdoc: add support for type filters in arguments and generics
This makes sense, since the search index has the information in it, and it's more useful for function signature searches since a function signature search's item type is, by definition, some type of function (there's more than one, but not very many).
Diffstat (limited to 'tests/rustdoc-js/generics-impl.js')
| -rw-r--r-- | tests/rustdoc-js/generics-impl.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc-js/generics-impl.js b/tests/rustdoc-js/generics-impl.js index bb6e0041db5..5051743bda2 100644 --- a/tests/rustdoc-js/generics-impl.js +++ b/tests/rustdoc-js/generics-impl.js @@ -5,6 +5,8 @@ const QUERY = [ 'Aaaaaaa -> bool', 'Aaaaaaa -> usize', 'Read -> u64', + 'trait:Read -> u64', + 'struct:Read -> u64', 'bool -> u64', 'Ddddddd -> u64', '-> Ddddddd' @@ -37,6 +39,17 @@ const EXPECTED = [ ], }, { + // trait:Read -> u64 + 'others': [ + { 'path': 'generics_impl::Ddddddd', 'name': 'eeeeeee' }, + { 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' }, + ], + }, + { + // struct:Read -> u64 + 'others': [], + }, + { // bool -> u64 'others': [ { 'path': 'generics_impl::Ddddddd', 'name': 'fffffff' }, |
