forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#121218 - ShoyuVanilla:fix-issue-76736, r=notriddle Fix missing trait impls for type in rustc docs Fixes rust-lang#76736
- Loading branch information
Showing
7 changed files
with
74 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![feature(staged_api)] | ||
#![unstable(feature = "rustc_private", issue = "none")] | ||
|
||
pub trait MaybeResult<T> {} | ||
|
||
impl<T> MaybeResult<T> for T {} |
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,5 @@ | ||
#![feature(rustc_private)] | ||
|
||
extern crate issue_76736_1; | ||
|
||
pub struct 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,15 @@ | ||
// aux-build:issue-76736-1.rs | ||
// aux-build:issue-76736-2.rs | ||
|
||
#![crate_name = "foo"] | ||
|
||
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; |
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,16 @@ | ||
// aux-build:issue-76736-1.rs | ||
// aux-build:issue-76736-2.rs | ||
|
||
#![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' | ||
pub struct Foo; | ||
|
||
// @has foo/struct.Bar.html | ||
// @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,16 @@ | ||
// compile-flags: -Zforce-unstable-if-unmarked | ||
// aux-build:issue-76736-1.rs | ||
// aux-build:issue-76736-2.rs | ||
|
||
#![crate_name = "foo"] | ||
|
||
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; |