mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
6d6f67a98c
To decide if internal items should be inlined in a doc page, check if the crate is itself internal, rather than if it has the rustc_private feature flag. The standard library uses internal items, but is not itself internal and should not show internal items on its docs pages.
20 lines
534 B
Rust
20 lines
534 B
Rust
//@ aux-build:issue-76736-1.rs
|
|
//@ aux-build:issue-76736-2.rs
|
|
|
|
// https://github.com/rust-lang/rust/issues/124635
|
|
|
|
#![crate_name = "foo"]
|
|
#![feature(rustc_private, staged_api)]
|
|
#![unstable(feature = "rustc_private", issue = "none")]
|
|
|
|
extern crate issue_76736_1;
|
|
extern crate issue_76736_2;
|
|
|
|
// @has foo/struct.Foo.html
|
|
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult'
|
|
pub struct Foo;
|
|
|
|
// @has foo/struct.Bar.html
|
|
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult'
|
|
pub use issue_76736_2::Bar;
|