-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for spurious intra-doc link warning
- Loading branch information
1 parent
e721f5e
commit 49cde40
Showing
2 changed files
with
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pub trait ThisTrait { | ||
fn asdf(&self); | ||
|
||
/// let's link to [`asdf`](ThisTrait::asdf) | ||
fn qwop(&self); | ||
} |
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 @@ | ||
// aux-build:intra-links-external-traits.rs | ||
// ignore-cross-compile | ||
|
||
#![crate_name = "outer"] | ||
#![deny(intra_doc_link_resolution_failure)] | ||
|
||
// using a trait that has intra-doc links on it from another crate (whether re-exporting or just | ||
// implementing it) used to give spurious resolution failure warnings | ||
|
||
extern crate intra_links_external_traits; | ||
|
||
pub use intra_links_external_traits::ThisTrait; |