rustdoc: avoid inlining foreigns with duplicate names

This commit is contained in:
Michael Howell 2022-08-02 14:48:23 -07:00
parent 225ac9efc1
commit 8724ca3114
3 changed files with 27 additions and 5 deletions

View file

@ -5,3 +5,7 @@ impl Option {
/// [`Option::unwrap`]
pub mod task {}
extern "C" {
pub fn main() -> std::ffi::c_int;
}

View file

@ -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;
}