about summary refs log tree commit diff
path: root/src/test/rustdoc/doc-notable_trait-slice.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-11-07 15:53:30 -0700
committerMichael Howell <michael@notriddle.com>2022-11-07 22:45:24 -0700
commit303653ef65a337b21226a52546615936225fb5af (patch)
treef92e9c35d29d63f5b0425f837acd6e2275f2e591 /src/test/rustdoc/doc-notable_trait-slice.rs
parent8e0cac18cd2951e2679ea55e15242d04e2d410c9 (diff)
downloadrust-303653ef65a337b21226a52546615936225fb5af.tar.gz
rust-303653ef65a337b21226a52546615936225fb5af.zip
rustdoc: use javascript to layout notable traits popups
Fixes #102576
Diffstat (limited to 'src/test/rustdoc/doc-notable_trait-slice.rs')
-rw-r--r--src/test/rustdoc/doc-notable_trait-slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc/doc-notable_trait-slice.rs b/src/test/rustdoc/doc-notable_trait-slice.rs
index b0d41402721..2411da8cd45 100644
--- a/src/test/rustdoc/doc-notable_trait-slice.rs
+++ b/src/test/rustdoc/doc-notable_trait-slice.rs
@@ -8,13 +8,13 @@ pub struct OtherStruct;
 impl SomeTrait for &[SomeStruct] {}
 
 // @has doc_notable_trait_slice/fn.bare_fn_matches.html
-// @has - '//code[@class="content"]' 'impl SomeTrait for &[SomeStruct]'
+// @snapshot bare_fn_matches - '//script[@id="notable-traits-data"]'
 pub fn bare_fn_matches() -> &'static [SomeStruct] {
     &[]
 }
 
 // @has doc_notable_trait_slice/fn.bare_fn_no_matches.html
-// @!has - '//code[@class="content"]' 'impl SomeTrait for &[SomeStruct]'
+// @count - '//script[@id="notable-traits-data"]' 0
 pub fn bare_fn_no_matches() -> &'static [OtherStruct] {
     &[]
 }