-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #96091 - GuillaumeGomez:duplicated-blanket-impls, r=not…
…riddle Fix rustdoc duplicated blanket impls Fixes #96036. I think it'll not be great performance-wise but I couldn't find another way to prevent that unfortunately... r? `@notriddle`
- Loading branch information
Showing
3 changed files
with
53 additions
and
4 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,14 @@ | ||
// This test ensures that the same implementation doesn't show more than once. | ||
// It's a regression test for https://github.com/rust-lang/rust/issues/96036. | ||
|
||
#![crate_name = "foo"] | ||
|
||
// We check that there is only one "impl<T> Something<Whatever> for T" listed in the | ||
// blanket implementations. | ||
|
||
// @has 'foo/struct.Whatever.html' | ||
// @count - '//*[@id="blanket-implementations-list"]/section[@class="impl has-srclink"]' 1 | ||
|
||
pub trait Something<T> { } | ||
pub struct Whatever; | ||
impl<T> Something<Whatever> for T {} |