-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #103886 - GuillaumeGomez:local-reexport-doc, r=notriddle
rustdoc: Fix merge of attributes for reexports of local items Fixes #84619. The problem was that we didn't merge attributes between the the reexport and the item. r? `@notriddle`
- Loading branch information
Showing
3 changed files
with
53 additions
and
18 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,16 @@ | ||
// This test ensures that the reexports of local items also get the doc from | ||
// the reexport. | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @has 'foo/fn.g.html' | ||
// @has - '//*[@class="rustdoc-toggle top-doc"]/*[@class="docblock"]' \ | ||
// 'outer module inner module' | ||
|
||
mod inner_mod { | ||
/// inner module | ||
pub fn g() {} | ||
} | ||
|
||
/// outer module | ||
pub use inner_mod::g; |