about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPoliorcetics <poliorcetics@users.noreply.github.com>2020-11-12 01:55:28 +0100
committerGitHub <noreply@github.com>2020-11-12 01:55:28 +0100
commitecfeac58aae332b5f88388624d9656ec6750e011 (patch)
treea8699754edac4aa1a432f344305256f4e5378407
parent9c7069645cf919cb0a848175a208d6eb4d92802e (diff)
downloadrust-ecfeac58aae332b5f88388624d9656ec6750e011.tar.gz
rust-ecfeac58aae332b5f88388624d9656ec6750e011.zip
Use intradoc-links for the whole test, add a @has check
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
-rw-r--r--src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs b/src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs
index d758d993613..0c047e6249a 100644
--- a/src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs
+++ b/src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs
@@ -1,12 +1,13 @@
 // ignore-tidy-linelength
 
 pub mod internal {
+    // @has 'raw_ident_eliminate_r_hashtag/internal/struct.mod.html'
     pub struct r#mod;
 
     /// See [name], [other name]
     ///
     /// [name]: mod
-    /// [other name]: ../internal/struct.mod.html
+    /// [other name]: crate::internal::mod
     // @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'name'
     // @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'other name'
     pub struct B;