-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #74534 - Mark-Simulacrum:rustdoc-stability, r=Manishe…
…arth Only skip impls of foreign unstable traits Previously unstable impls were skipped, which meant that any impl with an unstable method would get skipped. Fixes #74531.
- Loading branch information
Showing
3 changed files
with
42 additions
and
3 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,26 @@ | ||
#![feature(staged_api)] | ||
#![stable(feature = "private_general", since = "1.0.0")] | ||
|
||
#[unstable(feature = "private_trait", issue = "none")] | ||
pub trait Bar {} | ||
|
||
#[stable(feature = "private_general", since = "1.0.0")] | ||
pub struct Foo { | ||
// nothing | ||
} | ||
|
||
impl Foo { | ||
#[stable(feature = "private_general", since = "1.0.0")] | ||
pub fn stable_impl() {} | ||
} | ||
|
||
impl Foo { | ||
#[unstable(feature = "private_trait", issue = "none")] | ||
pub fn bar() {} | ||
|
||
#[stable(feature = "private_general", since = "1.0.0")] | ||
pub fn bar2() {} | ||
} | ||
|
||
#[stable(feature = "private_general", since = "1.0.0")] | ||
impl Bar for Foo {} |
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,11 @@ | ||
// aux-build:unstable-trait.rs | ||
|
||
#![crate_name = "foo"] | ||
#![feature(private_trait)] | ||
|
||
extern crate unstable_trait; | ||
|
||
// @has foo/struct.Foo.html 'bar' | ||
// @has foo/struct.Foo.html 'bar2' | ||
#[doc(inline)] | ||
pub use unstable_trait::Foo; |