From a9a26de8b3b8a0acda3b7716f6e9b4b1bfb799dd Mon Sep 17 00:00:00 2001 From: Philip Munksgaard Date: Fri, 5 Oct 2018 22:55:13 +0200 Subject: [PATCH] Fix redirect.rs test Struct names are no longer encapsulated in `` 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. --- src/test/rustdoc/redirect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;