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.
rustdoc-search: account for numeric disambiguators on impls
Fixes rust-lang#128676
- Loading branch information
1 parent
83e9b93
commit d4f12d6
Showing
3 changed files
with
52 additions
and
7 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 |
---|---|---|
@@ -1 +1,19 @@ | ||
pub fn tadam() {} | ||
pub struct MultiImplBlockStruct; | ||
|
||
impl MultiImplBlockStruct { | ||
pub fn first_fn() {} | ||
} | ||
|
||
impl MultiImplBlockStruct { | ||
pub fn second_fn(self) -> bool { true } | ||
} | ||
|
||
pub trait MultiImplBlockTrait { | ||
fn first_fn(); | ||
fn second_fn(self) -> u32; | ||
} | ||
|
||
impl MultiImplBlockTrait for MultiImplBlockStruct { | ||
fn first_fn() {} | ||
fn second_fn(self) -> u32 { 1 } | ||
} |