Skip to content

Commit

Permalink
Add test for doc(hidden) intra-doc cross-crate reexports
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jul 17, 2020
1 parent d5b1b74 commit 50d350b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/rustdoc/intra-doc-crate/auxiliary/hidden.rs
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};

}
10 changes: 10 additions & 0 deletions src/test/rustdoc/intra-doc-crate/hidden.rs
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};

0 comments on commit 50d350b

Please sign in to comment.