about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-08-30 08:44:20 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-30 11:16:19 -0400
commite885f00f24aab657b3a9835818fc96e638e7fb21 (patch)
tree07454640b81bcac0e25fa193aa69f34f9d36b30e
parent1b1935452f26593d07fa17ccbe3308901dda891b (diff)
downloadrust-e885f00f24aab657b3a9835818fc96e638e7fb21.tar.gz
rust-e885f00f24aab657b3a9835818fc96e638e7fb21.zip
Comment out test for generated docs until rustdoc changes its behavior around documenting re-exports
-rw-r--r--src/librustdoc/passes/collect_intra_doc_links.rs7
-rw-r--r--src/test/rustdoc/intra-link-pub-use.rs15
2 files changed, 18 insertions, 4 deletions
diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs
index be6a7e25c88..55d7974a9ef 100644
--- a/src/librustdoc/passes/collect_intra_doc_links.rs
+++ b/src/librustdoc/passes/collect_intra_doc_links.rs
@@ -592,7 +592,12 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
                     }
                     current = parent;
                 } else {
-                    debug!("{:?} has no parent (kind={:?}, original was {:?})", current, self.cx.tcx.def_kind(current), item.def_id);
+                    debug!(
+                        "{:?} has no parent (kind={:?}, original was {:?})",
+                        current,
+                        self.cx.tcx.def_kind(current),
+                        item.def_id
+                    );
                     break None;
                 }
             }
diff --git a/src/test/rustdoc/intra-link-pub-use.rs b/src/test/rustdoc/intra-link-pub-use.rs
index a5ceeafc80a..f49edea410d 100644
--- a/src/test/rustdoc/intra-link-pub-use.rs
+++ b/src/test/rustdoc/intra-link-pub-use.rs
@@ -1,8 +1,17 @@
-#![deny(intra_doc_link_resolution_failure)]
+#![deny(broken_intra_doc_links)]
 
 /// [std::env] [g]
-// @has intra_link_pub_use/index.html '//a[@href="https://doc.rust-lang.org/nightly/std/env/fn.var.html"]' "std::env"
-// @has - '//a[@href="../intra_link_pub_use/fn.f.html"]' "g"
+// FIXME: This can't be tested because rustdoc doesn't show documentation on pub re-exports.
+// Until then, comment out the `htmldocck` test.
+// This test still does something; namely check that no incorrect errors are emitted when
+// documenting the re-export.
+
+// @has intra_link_pub_use/index.html
+// @ has - '//a[@href="https://doc.rust-lang.org/nightly/std/env/fn.var.html"]' "std::env"
+// @ has - '//a[@href="../intra_link_pub_use/fn.f.html"]' "g"
 pub use f as g;
 
+/// [std::env]
+extern crate self as _;
+
 pub fn f() {}