about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/asrawfd.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/asrawfd.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/asrawfd.js')
-rw-r--r--tests/rustdoc-js-std/asrawfd.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rustdoc-js-std/asrawfd.js b/tests/rustdoc-js-std/asrawfd.js
index 5dbc4ba95d9..da08eeb8a53 100644
--- a/tests/rustdoc-js-std/asrawfd.js
+++ b/tests/rustdoc-js-std/asrawfd.js
@@ -1,12 +1,10 @@
 // ignore-order
 
 const EXPECTED = {
-    'query': 'RawFd::as_raw_fd',
+    'query': 'method:RawFd::as_raw_fd',
     'others': [
         // Reproduction test for https://github.com/rust-lang/rust/issues/78724
         // Validate that type alias methods get the correct path.
-        { 'path': 'std::os::fd::AsRawFd', 'name': 'as_raw_fd' },
-        { 'path': 'std::os::fd::AsRawFd', 'name': 'as_raw_fd' },
         { 'path': 'std::os::fd::RawFd', 'name': 'as_raw_fd' },
     ],
 };