Add test for doc(hidden) intra-doc cross-crate reexports

This commit is contained in:
Manish Goregaokar 2020-06-16 13:55:13 -07:00
parent d5b1b74f47
commit 50d350b67c
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#![crate_name = "hidden_dep"]
#![deny(intra_doc_resolution_failure)]
#[doc(hidden)]
pub mod __reexport {
pub use crate::*;
}
pub mod future {
mod ready {
/// Link to [`ready`](function@ready)
pub struct Ready;
pub fn ready() {}
}
pub use self::ready::{ready, Ready};
}

View file

@ -0,0 +1,10 @@
// aux-build:hidden.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
// tests https://github.com/rust-lang/rust/issues/73363
extern crate hidden_dep;
// @has 'hidden/struct.Ready.html' '//a/@href' '../hidden/fn.ready.html'
pub use hidden_dep::future::{ready, Ready};