forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#133105 - bvanjoi:issue-132743, r=petrochenkov only store valid proc macro item for doc link Fixes rust-lang#132743 The definition item can be detected if it is exported in the doc, so store these items rather than skipping. r? `@petrochenkov`
- Loading branch information
Showing
3 changed files
with
45 additions
and
15 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
20 changes: 20 additions & 0 deletions
20
tests/rustdoc-ui/intra-doc/auxiliary/in-proc-item-comment.rs
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,20 @@ | ||
//@ force-host | ||
//@ no-prefer-dynamic | ||
#![crate_type = "proc-macro"] | ||
|
||
extern crate proc_macro; | ||
use proc_macro::TokenStream; | ||
|
||
mod view {} | ||
|
||
/// [`view`] | ||
#[proc_macro] | ||
pub fn f(_: TokenStream) -> TokenStream { | ||
todo!() | ||
} | ||
|
||
/// [`f()`] | ||
#[proc_macro] | ||
pub fn g(_: TokenStream) -> TokenStream { | ||
todo!() | ||
} |
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 @@ | ||
//@ aux-build:in-proc-item-comment.rs | ||
//@ check-pass | ||
|
||
// issue#132743 | ||
|
||
extern crate in_proc_item_comment; | ||
|
||
pub use in_proc_item_comment::{f, g}; |