-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #124864 - notriddle:notriddle/feature-flags-are-not-s…
…tability-markers, r=fmease rustdoc: use stability, instead of features, to decide what to show Fixes #124635 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.
- Loading branch information
Showing
4 changed files
with
42 additions
and
34 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
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
//@ 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)] | ||
|
||
extern crate issue_76736_1; | ||
extern crate issue_76736_2; | ||
|
||
// @has foo/struct.Foo.html | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
pub struct Foo; | ||
|
||
// @has foo/struct.Bar.html | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' | ||
pub use issue_76736_2::Bar; |
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 @@ | ||
//@ 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; |