-
Notifications
You must be signed in to change notification settings - Fork 13k
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 #109351 - GuillaumeGomez:no-footnote-in-summary, r=no…
…triddle rustdoc: Remove footnote references from doc summary Since it's one line, we don't have the footnote definition so it doesn't make sense to have the reference. Part of #109024. r? `@notriddle`
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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,17 @@ | ||
// This test ensures that no footnote reference is generated inside | ||
// summary doc. | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @has 'foo/index.html' | ||
// @has - '//*[@class="desc docblock-short"]' 'hello bla' | ||
// @!has - '//*[@class="desc docblock-short"]/sup' '1' | ||
|
||
// @has 'foo/struct.S.html' | ||
// @has - '//*[@class="docblock"]//sup' '1' | ||
// @has - '//*[@class="docblock"]' 'hello 1 bla' | ||
|
||
/// hello [^foot] bla | ||
/// | ||
/// [^foot]: blabla | ||
pub struct S; |