only store valid proc marco item for doc link
This commit is contained in:
parent
743003b1a6
commit
30d68eb9aa
3 changed files with 45 additions and 15 deletions
20
tests/rustdoc-ui/intra-doc/auxiliary/in-proc-item-comment.rs
Normal file
20
tests/rustdoc-ui/intra-doc/auxiliary/in-proc-item-comment.rs
Normal file
|
@ -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!()
|
||||
}
|
8
tests/rustdoc-ui/intra-doc/pub-proc-item.rs
Normal file
8
tests/rustdoc-ui/intra-doc/pub-proc-item.rs
Normal file
|
@ -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};
|
Loading…
Add table
Add a link
Reference in a new issue