forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for doc(hidden) intra-doc cross-crate reexports
- Loading branch information
1 parent
d5b1b74
commit 50d350b
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}; |