about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorest31 <est31@users.noreply.github.com>2022-07-26 12:45:16 +0200
committerGitHub <noreply@github.com>2022-07-26 12:45:16 +0200
commit15db4186b76a95adad15428d391fe7726112ea03 (patch)
tree40674933b8376a13e5b23d8b6c6a9b912f25c545 /src/test/rustdoc
parent5fcd2f72feefa22e2c304301a67f448fde21bb7e (diff)
downloadrust-15db4186b76a95adad15428d391fe7726112ea03.tar.gz
rust-15db4186b76a95adad15428d391fe7726112ea03.zip
Simplify test
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/type-layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc/type-layout.rs b/src/test/rustdoc/type-layout.rs
index 3b13e12ee61..e5c6e9dc3f9 100644
--- a/src/test/rustdoc/type-layout.rs
+++ b/src/test/rustdoc/type-layout.rs
@@ -2,7 +2,7 @@
 
 // @has type_layout/struct.Foo.html 'Size: '
 // @has - ' bytes'
-// @matches - '<h2 id="layout".+Layout.+a href="#layout" class="anchor">'
+// @has - '//*[@id="layout"]/a[@href="#layout"]' ''
 pub struct Foo {
     pub a: usize,
     b: Vec<String>,