about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorPhilip Munksgaard <pmunksgaard@gmail.com>2018-10-05 22:55:13 +0200
committerPhilip Munksgaard <pmunksgaard@gmail.com>2018-10-05 22:55:13 +0200
commita9a26de8b3b8a0acda3b7716f6e9b4b1bfb799dd (patch)
tree06f03262c6e671c71c44a680acf5e78342eb5f12 /src/test/rustdoc
parent5f8dc0ddf47274e0a98111edc816b825484d0d1a (diff)
downloadrust-a9a26de8b3b8a0acda3b7716f6e9b4b1bfb799dd.tar.gz
rust-a9a26de8b3b8a0acda3b7716f6e9b4b1bfb799dd.zip
Fix redirect.rs test
Struct names are no longer encapsulated in `<code>` tags, which meant that the
test was not correctly verifying that it wasn't being show. I've also added a
check to make sure the documentation page for the redirect::Qux struct is not
generated at all.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/redirect.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/rustdoc/redirect.rs b/src/test/rustdoc/redirect.rs
index 98e66e8c024..c20dd815d8c 100644
--- a/src/test/rustdoc/redirect.rs
+++ b/src/test/rustdoc/redirect.rs
@@ -43,6 +43,7 @@ mod private_no_inline {
 
 // @has redirect/index.html
 // @has - '//code' 'pub use private_no_inline::Qux'
-// @!has - '//code/a' 'Qux'
+// @!has - '//a' 'Qux'
+// @!has redirect/struct.Qux.html
 #[doc(no_inline)]
 pub use private_no_inline::Qux;