-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve: Fix resolution of empty paths passed from rustdoc
- Loading branch information
1 parent
634770c
commit 7faaf8f
Showing
3 changed files
with
21 additions
and
1 deletion.
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,8 @@ | ||
// Doc link path with empty prefix that resolves to "extern prelude" instead of a module. | ||
|
||
// check-pass | ||
// edition:2018 | ||
|
||
/// [::Unresolved] | ||
//~^ WARN unresolved link to `::Unresolved` | ||
pub struct Item; |
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,10 @@ | ||
warning: unresolved link to `::Unresolved` | ||
--> $DIR/global-path.rs:6:6 | ||
| | ||
LL | /// [::Unresolved] | ||
| ^^^^^^^^^^^^ no item named `` in scope | ||
| | ||
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|