forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#96521 - petrochenkov:docrules, r=notriddle,Gu…
…illaumeGomez rustdoc: Resolve doc links referring to `macro_rules` items cc rust-lang#81633 UPD: the fallback to considering *all* `macro_rules` in the crate for unresolved names is not removed in this PR, it will be removed separately and will be run through crater.
- Loading branch information
Showing
11 changed files
with
175 additions
and
41 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
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
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,27 @@ | ||
// `macro_rules` scopes are respected during doc link resolution. | ||
|
||
// compile-flags: --document-private-items | ||
|
||
#![deny(rustdoc::broken_intra_doc_links)] | ||
|
||
mod no_escape { | ||
macro_rules! before_but_limited_to_module { | ||
() => {}; | ||
} | ||
} | ||
|
||
/// [before_but_limited_to_module] FIXME: This error should be reported | ||
// ERROR unresolved link to `before_but_limited_to_module` | ||
/// [after] FIXME: This error should be reported | ||
// ERROR unresolved link to `after` | ||
/// [str] FIXME: This error shouldn not be reported | ||
//~^ ERROR `str` is both a builtin type and a macro | ||
fn check() {} | ||
|
||
macro_rules! after { | ||
() => {}; | ||
} | ||
|
||
macro_rules! str { | ||
() => {}; | ||
} |
Oops, something went wrong.