-
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.
rustdoc: inline compiler-private items into compiler-private crates
Fixes #106421
- Loading branch information
Showing
4 changed files
with
38 additions
and
8 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,9 @@ | ||
// compile-flags: -Zforce-unstable-if-unmarked | ||
#![crate_name="foo"] | ||
pub struct FatalError; | ||
|
||
impl FatalError { | ||
pub fn raise(self) -> ! { | ||
loop {} | ||
} | ||
} |
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,8 @@ | ||
// aux-build:issue-106421-force-unstable.rs | ||
// ignore-cross-compile | ||
// This is the version where a non-compiler-internal crate inlines a compiler-internal one. | ||
// In this case, the item shouldn't be documented, because regular users can't get at it. | ||
extern crate foo; | ||
|
||
// @!has issue_106421_not_internal/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise' | ||
pub use foo::FatalError; |
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,8 @@ | ||
// aux-build:issue-106421-force-unstable.rs | ||
// ignore-cross-compile | ||
// compile-flags: -Zforce-unstable-if-unmarked | ||
|
||
extern crate foo; | ||
|
||
// @has issue_106421/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise' | ||
pub use foo::FatalError; |