about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-10 11:37:19 -0700
committerMichael Howell <michael@notriddle.com>2022-10-10 11:40:15 -0700
commitb63b02f8728259c3b67d1f6ca7d1845892b86a9e (patch)
tree827b691a7c90dd8f2c4203e266ee86610bf6e9b2 /src/test/rustdoc
parent0265a3e93bf1b89d97cae113ed214954d5c35e22 (diff)
downloadrust-b63b02f8728259c3b67d1f6ca7d1845892b86a9e.tar.gz
rust-b63b02f8728259c3b67d1f6ca7d1845892b86a9e.zip
rustdoc: remove unneeded `<div>` wrapper from sidebar DOM
When this was added, the sidebar had a bit more complex style. It can be
removed, now.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/strip-enum-variant.no-not-shown.html2
-rw-r--r--src/test/rustdoc/strip-enum-variant.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc/strip-enum-variant.no-not-shown.html b/src/test/rustdoc/strip-enum-variant.no-not-shown.html
index c4ee1a99114..782198956a0 100644
--- a/src/test/rustdoc/strip-enum-variant.no-not-shown.html
+++ b/src/test/rustdoc/strip-enum-variant.no-not-shown.html
@@ -1 +1 @@
-<ul><li><a href="#variant.Shown">Shown</a></li></ul>
\ No newline at end of file
+<ul class="block"><li><a href="#variant.Shown">Shown</a></li></ul>
\ No newline at end of file
diff --git a/src/test/rustdoc/strip-enum-variant.rs b/src/test/rustdoc/strip-enum-variant.rs
index f82ffdfeda5..8753a7dc613 100644
--- a/src/test/rustdoc/strip-enum-variant.rs
+++ b/src/test/rustdoc/strip-enum-variant.rs
@@ -3,7 +3,7 @@
 // @!has - '//code' 'NotShown'
 // @has - '//code' '// some variants omitted'
 // Also check that `NotShown` isn't displayed in the sidebar.
-// @snapshot no-not-shown - '//*[@class="sidebar-elems"]/section/*[@class="block"][1]/ul'
+// @snapshot no-not-shown - '//*[@class="sidebar-elems"]/section/*[@class="block"][1]'
 pub enum MyThing {
     Shown,
     #[doc(hidden)]