Add test for doc(hidden) intra-doc cross-crate reexports
This commit is contained in:
parent
d5b1b74f47
commit
50d350b67c
2 changed files with 29 additions and 0 deletions
19
src/test/rustdoc/intra-doc-crate/auxiliary/hidden.rs
Normal file
19
src/test/rustdoc/intra-doc-crate/auxiliary/hidden.rs
Normal 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};
|
||||
|
||||
}
|
||||
10
src/test/rustdoc/intra-doc-crate/hidden.rs
Normal file
10
src/test/rustdoc/intra-doc-crate/hidden.rs
Normal 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};
|
||||
Loading…
Add table
Add a link
Reference in a new issue