Skip to content

Commit 50d350b

Browse files
committed
Add test for doc(hidden) intra-doc cross-crate reexports
1 parent d5b1b74 commit 50d350b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#![crate_name = "hidden_dep"]
2+
#![deny(intra_doc_resolution_failure)]
3+
4+
#[doc(hidden)]
5+
pub mod __reexport {
6+
pub use crate::*;
7+
}
8+
9+
pub mod future {
10+
mod ready {
11+
12+
/// Link to [`ready`](function@ready)
13+
pub struct Ready;
14+
pub fn ready() {}
15+
16+
}
17+
pub use self::ready::{ready, Ready};
18+
19+
}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// aux-build:hidden.rs
2+
// build-aux-docs
3+
#![deny(intra_doc_resolution_failure)]
4+
5+
// tests https://github.com/rust-lang/rust/issues/73363
6+
7+
extern crate hidden_dep;
8+
9+
// @has 'hidden/struct.Ready.html' '//a/@href' '../hidden/fn.ready.html'
10+
pub use hidden_dep::future::{ready, Ready};

0 commit comments

Comments
 (0)