Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show summary lines on cross-crate re-exports
This removes the unnecessary `DocFragmentKind::Divider` in favor of just using the logic I actually want in `collapse_docs`.
- Loading branch information
Showing
6 changed files
with
28 additions
and
25 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
6 changes: 6 additions & 0 deletions
6
src/test/rustdoc/auxiliary/intra-link-reexport-additional-docs.rs
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,6 @@ | ||
#![crate_name = "inner"] | ||
|
||
/// Links to [f()] | ||
pub struct Inner; | ||
|
||
pub fn f() {} |
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,2 @@ | ||
/// Docs in original | ||
pub struct S; |
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
// aux-build:reexport-check.rs | ||
#![crate_name = "foo"] | ||
|
||
extern crate reexport_check; | ||
|
||
// @!has 'foo/index.html' '//code' 'pub use self::i32;' | ||
// @has 'foo/index.html' '//tr[@class="module-item"]' 'i32' | ||
// @has 'foo/i32/index.html' | ||
pub use std::i32; | ||
// @!has 'foo/index.html' '//code' 'pub use self::string::String;' | ||
// @has 'foo/index.html' '//tr[@class="module-item"]' 'String' | ||
pub use std::string::String; | ||
|
||
// @has 'foo/index.html' '//td[@class="docblock-short"]' 'Docs in original' | ||
// this is a no-op, but shows what happens if there's an attribute that isn't a doc-comment | ||
#[doc(inline)] | ||
pub use reexport_check::S; |