-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #76571 - lzutao:rustdoc-private-traits, r=jyn514
Ignore rustc_private items from std docs By ignoring rustc_private items for non local impl block, this may fix #74672 and fix #75588 . This might suppress #76529 if it is simple enough for backport.
- Loading branch information
Showing
5 changed files
with
66 additions
and
9 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,13 @@ | ||
// aux-build:realcore.rs | ||
|
||
#![crate_name = "real_gimli"] | ||
#![feature(staged_api, extremely_unstable)] | ||
#![unstable(feature = "rustc_private", issue = "none")] | ||
|
||
extern crate realcore; | ||
|
||
#[unstable(feature = "rustc_private", issue = "none")] | ||
pub struct EndianSlice; | ||
|
||
#[unstable(feature = "rustc_private", issue = "none")] | ||
impl realcore::Deref for EndianSlice {} |
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,15 @@ | ||
#![crate_name = "realcore"] | ||
#![feature(staged_api)] | ||
#![unstable(feature = "extremely_unstable", issue = "none")] | ||
|
||
#[unstable(feature = "extremely_unstable_foo", issue = "none")] | ||
pub struct Foo {} | ||
|
||
#[unstable(feature = "extremely_unstable_foo", issue = "none")] | ||
pub trait Join {} | ||
|
||
#[unstable(feature = "extremely_unstable_foo", issue = "none")] | ||
impl Join for Foo {} | ||
|
||
#[stable(feature = "faked_deref", since = "1.47.0")] | ||
pub trait Deref {} |
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,18 @@ | ||
// ignore-tidy-linelength | ||
// aux-build:realcore.rs | ||
// aux-build:real_gimli.rs | ||
|
||
// Ensure unstably exported traits have their Implementors sections. | ||
|
||
#![crate_name = "foo"] | ||
#![feature(extremely_unstable_foo)] | ||
|
||
extern crate realcore; | ||
extern crate real_gimli; | ||
|
||
// issue #74672 | ||
// @!has foo/trait.Deref.html '//*[@id="impl-Deref-for-EndianSlice"]//code' 'impl Deref for EndianSlice' | ||
pub use realcore::Deref; | ||
|
||
// @has foo/trait.Join.html '//*[@id="impl-Join-for-Foo"]//code' 'impl Join for Foo' | ||
pub use realcore::Join; |
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