forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
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 rust-lang#109266 - petrochenkov:docice4, r=petrochenkov
rustdoc: Correctly merge import's and its target's docs in one more case Fixes rust-lang#108334. Fixes rust-lang#108378. Fixes rust-lang#108658.
- Loading branch information
Showing
2 changed files
with
24 additions
and
6 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,16 @@ | ||
// Import for `A` is inlined and doc comments on the import and `A` itself are merged. | ||
// After the merge they still have correct parent scopes to resolve both `[A]` and `[B]`. | ||
|
||
// check-pass | ||
|
||
#![allow(rustdoc::private_intra_doc_links)] | ||
|
||
mod m { | ||
/// [B] | ||
pub struct A {} | ||
|
||
pub struct B {} | ||
} | ||
|
||
/// [A] | ||
pub use m::A; |