-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 #82332 - GuillaumeGomez:no-src-link-on-dummy-spans, r…
…=jyn514 Don't generate src link on dummy spans Just realized that the "auto trait impls" had `[src]` links were leading to the crate root because they were dummy spans. This PR fixes this issue. cc `@jyn514` r? `@camelid`
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 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,12 @@ | ||
#![crate_name = "foo"] | ||
|
||
// @has foo/struct.Unsized.html | ||
// @has - '//h3[@id="impl-Sized"]/code' 'impl !Sized for Unsized' | ||
// @!has - '//h3[@id="impl-Sized"]/a[@class="srclink"]' '[src]' | ||
// @has - '//h3[@id="impl-Sync"]/code' 'impl Sync for Unsized' | ||
// @!has - '//h3[@id="impl-Sync"]/a[@class="srclink"]' '[src]' | ||
// @has - '//h3[@id="impl-Any"]/code' 'impl<T> Any for T' | ||
// @has - '//h3[@id="impl-Any"]/a[@class="srclink"]' '[src]' | ||
pub struct Unsized { | ||
data: [u8], | ||
} |