about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-08-22 17:12:32 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-23 22:40:20 -0400
commitbcd6fe35e0b7577de7a72114270f9c2daa431738 (patch)
tree030813996e7a5998360b901be7600369564ffc67
parent6f4681bacc78a00a63766f12a17560701ab5c1e8 (diff)
downloadrust-bcd6fe35e0b7577de7a72114270f9c2daa431738.tar.gz
rust-bcd6fe35e0b7577de7a72114270f9c2daa431738.zip
Update primitive test to match the new behavior
-rw-r--r--src/test/rustdoc/intra-link-prim-precedence.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/rustdoc/intra-link-prim-precedence.rs b/src/test/rustdoc/intra-link-prim-precedence.rs
index 15ea1232fd6..0a4e57ef643 100644
--- a/src/test/rustdoc/intra-link-prim-precedence.rs
+++ b/src/test/rustdoc/intra-link-prim-precedence.rs
@@ -1,17 +1,17 @@
 // ignore-tidy-linelength
 #![deny(broken_intra_doc_links)]
 
-pub mod char {}
+pub mod char {
+    /// [char]
+    // @has intra_link_prim_precedence/char/struct.Inner.html '//a/@href' 'https://doc.rust-lang.org/nightly/std/primitive.char.html'
+    pub struct Inner;
+}
 
-/// See also [type@char]
+/// See [prim@char]
 // @has intra_link_prim_precedence/struct.MyString.html '//a/@href' 'https://doc.rust-lang.org/nightly/std/primitive.char.html'
 pub struct MyString;
 
-/// See also [char]
-// @has intra_link_prim_precedence/struct.MyString2.html '//a/@href' 'https://doc.rust-lang.org/nightly/std/primitive.char.html'
-pub struct MyString2;
-
 /// See also [crate::char] and [mod@char]
-// @has intra_link_prim_precedence/struct.MyString3.html '//*[@href="../intra_link_prim_precedence/char/index.html"]' 'crate::char'
+// @has intra_link_prim_precedence/struct.MyString2.html '//*[@href="../intra_link_prim_precedence/char/index.html"]' 'crate::char'
 // @has - '//*[@href="../intra_link_prim_precedence/char/index.html"]' 'mod@char'
-pub struct MyString3;
+pub struct MyString2;