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.
Auto merge of rust-lang#73365 - Manishearth:rustdoc-vis, r=GuillaumeG…
…omez Record visibility of reexports for all items, not just type items This fixes rust-lang#73363 Unfortunately I can't add a test for this since this bug is obscured by the cross-crate bug, being fixed in rust-lang#73363 . Tests will be added later. cc @jyn514 r? @GuillaumeGomez
- Loading branch information
Showing
3 changed files
with
42 additions
and
17 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
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_link_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_link_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}; |