Comment out test for generated docs until rustdoc changes its behavior around documenting re-exports

This commit is contained in:
Joshua Nelson 2020-08-30 08:44:20 -04:00
parent 1b1935452f
commit e885f00f24
2 changed files with 18 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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() {}