about summary refs log tree commit diff
path: root/tests/rustdoc-gui/sidebar.goml
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-gui/sidebar.goml
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-gui/sidebar.goml')
-rw-r--r--tests/rustdoc-gui/sidebar.goml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/sidebar.goml b/tests/rustdoc-gui/sidebar.goml
index 5ec0008ad8a..0d371c8c6a4 100644
--- a/tests/rustdoc-gui/sidebar.goml
+++ b/tests/rustdoc-gui/sidebar.goml
@@ -1,5 +1,7 @@
 // Checks multiple things on the sidebar display (width of its elements, colors, etc).
 include: "utils.goml"
+// Disable animations so they don't mess up color assertions later.
+emulate-media-features: { "prefers-reduced-motion": "reduce" }
 go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
 assert-property: (".sidebar", {"clientWidth": "199"})
 show-text: true