about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/quoted.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-10-03 08:43:43 +0000
committerbors <bors@rust-lang.org>2025-10-03 08:43:43 +0000
commitdd091003ace19d9556c647d87f7a9cd1e8dcc17e (patch)
treee664b8e4a5837e0f2245f51c41765da6fce596cf /tests/rustdoc-js-std/quoted.js
parent3b8665c5ab3aeced9b01672404c3764583e722ca (diff)
parentc7d6857f750a8c957ebca81340faa379cc3d110f (diff)
downloadrust-dd091003ace19d9556c647d87f7a9cd1e8dcc17e.tar.gz
rust-dd091003ace19d9556c647d87f7a9cd1e8dcc17e.zip
Auto merge of #145898 - lolbinarycat:rustdoc-search-trait-parent, r=GuillaumeGomez,notriddle
If a trait item appears in rustdoc search, hide the corrosponding impl items

fixes rust-lang/rust#138251

cc `@notriddle`
Diffstat (limited to 'tests/rustdoc-js-std/quoted.js')
-rw-r--r--tests/rustdoc-js-std/quoted.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/rustdoc-js-std/quoted.js b/tests/rustdoc-js-std/quoted.js
index 8a927501925..a8ca6521208 100644
--- a/tests/rustdoc-js-std/quoted.js
+++ b/tests/rustdoc-js-std/quoted.js
@@ -1,21 +1,21 @@
+// make sure quoted search works both for items and and without generics
 // ignore-order
 
 const FILTER_CRATE = 'std';
 
 const EXPECTED = {
-    'query': '"error"',
+    'query': '"result"',
     'others': [
-        { 'path': 'std', 'name': 'error' },
-        { 'path': 'std::fmt', 'name': 'Error' },
-        { 'path': 'std::io', 'name': 'Error' },
+        { 'path': 'std', 'name': 'result' },
+        { 'path': 'std::result', 'name': 'Result' },
+        { 'path': 'std::fmt', 'name': 'Result' },
     ],
     'in_args': [
-        { 'path': 'std::fmt::Error', 'name': 'eq' },
-        { 'path': 'std::fmt::Error', 'name': 'cmp' },
-        { 'path': 'std::fmt::Error', 'name': 'partial_cmp' },
-
+        { 'path': 'std::result::Result', 'name': 'branch' },
+        { 'path': 'std::result::Result', 'name': 'ok' },
+        { 'path': 'std::result::Result', 'name': 'unwrap' },
     ],
     'returned': [
-        { 'path': 'std::fmt::LowerExp', 'name': 'fmt' },
+        { 'path': 'std::bool', 'name': 'try_into' },
     ],
 };