diff options
| author | bors <bors@rust-lang.org> | 2022-03-29 12:49:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-29 12:49:03 +0000 |
| commit | 11909e3588319235e28e99294e17cca11db1d7e2 (patch) | |
| tree | 87b405abf60210044785f568e7f1f95e7d671b3c /src/test | |
| parent | e2301ca54320659835467072f37201591db959b5 (diff) | |
| parent | 8071332d833073fca42ee128d25f49ee140229eb (diff) | |
Auto merge of #95096 - GuillaumeGomez:rm-header-fn-field, r=camelid
Remove header field from clean::Function Fixes https://github.com/rust-lang/rust/issues/89673. This is another take on https://github.com/rust-lang/rust/issues/89673 (compared to https://github.com/rust-lang/rust/pull/91217) but very different on the approach: I moved the header call in one place but still require to have the `clean::Item` so I can use the `DefId` to get what is missing. cc `@jyn514` (you reviewed the original so maybe you want to take a look?) r? `@camelid`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/reexport-dep-foreign-fn.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/reexport-dep-foreign-fn.rs b/src/test/rustdoc/reexport-dep-foreign-fn.rs new file mode 100644 index 00000000000..6e1dc453982 --- /dev/null +++ b/src/test/rustdoc/reexport-dep-foreign-fn.rs @@ -0,0 +1,12 @@ +// aux-build:all-item-types.rs + +// This test is to ensure there is no problem on handling foreign functions +// coming from a dependency. + +#![crate_name = "foo"] + +extern crate all_item_types; + +// @has 'foo/fn.foo_ffn.html' +// @has - '//*[@class="docblock item-decl"]//code' 'pub unsafe extern "C" fn foo_ffn()' +pub use all_item_types::foo_ffn; |
