Comment out test for generated docs until rustdoc changes its behavior around documenting re-exports
This commit is contained in:
parent
1b1935452f
commit
e885f00f24
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user