-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve type aliases to the type they point to in intra-doc links
- Loading branch information
1 parent
3044419
commit dd90900
Showing
2 changed files
with
65 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Regression test for issue #86120. | ||
|
||
#![deny(broken_intra_doc_links)] | ||
#![crate_name = "foo"] | ||
|
||
pub struct Foo; | ||
|
||
/// You should really try [`Self::bar`]! | ||
pub type Bar = Foo; | ||
|
||
impl Bar { | ||
pub fn bar() {} | ||
} | ||
|
||
/// The minimum is [`Self::MIN`]. | ||
pub type Int = i32; | ||
|
||
// @has foo/type.Bar.html '//a[@href="struct.Foo.html#method.bar"]' 'Self::bar' | ||
// @has foo/type.Int.html '//a[@href="{{channel}}/std/primitive.i32.html#associatedconstant.MIN"]' 'Self::MIN' |