forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustdoc: avoid inlining foreigns with duplicate names
- Loading branch information
Showing
3 changed files
with
27 additions
and
5 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 |
---|---|---|
|
@@ -5,3 +5,7 @@ impl Option { | |
|
||
/// [`Option::unwrap`] | ||
pub mod task {} | ||
|
||
extern "C" { | ||
pub fn main() -> std::ffi::c_int; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/test/rustdoc/issue-99734-multiple-foreigns-w-same-name.rs
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-99734-aux.rs | ||
// build-aux-docs | ||
// ignore-cross-compile | ||
|
||
#![crate_name = "foo"] | ||
|
||
#[macro_use] | ||
extern crate issue_99734_aux; | ||
|
||
pub use issue_99734_aux::*; | ||
|
||
// @count foo/index.html '//a[@class="fn"][@title="foo::main fn"]' 1 | ||
|
||
extern "C" { | ||
pub fn main() -> std::ffi::c_int; | ||
} |