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.
Rollup merge of rust-lang#109330 - GuillaumeGomez:intermediate-reexpo…
…rt-intra-doc-ice, r=petrochenkov rustdoc: Fix ICE for intra-doc link on intermediate re-export Fixes rust-lang#109282. This PR is based on rust-lang#109266 as it includes its commit to make this work. `@petrochenkov:` It was exactly as you predicted, adding the `DefId` to the attributes fixed the error for intermediate re-exports as well. Thanks a lot! r? `@petrochenkov`
- Loading branch information
Showing
4 changed files
with
117 additions
and
51 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
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,14 @@ | ||
// Regression test for <https://github.com/rust-lang/rust/issues/109282>. | ||
// Import for `ValueEnum` is inlined and doc comments on the import and `ValueEnum` itself are | ||
// merged. After the merge they still have correct parent scopes to resolve both `[ValueEnum]`. | ||
|
||
// check-pass | ||
|
||
mod m { | ||
pub enum ValueEnum {} | ||
} | ||
mod m2 { | ||
/// [`ValueEnum`] | ||
pub use crate::m::ValueEnum; | ||
} | ||
pub use m2::ValueEnum; |