1
Fork 0

only store valid proc marco item for doc link

This commit is contained in:
bohan 2024-11-22 09:24:11 +08:00
parent 743003b1a6
commit 30d68eb9aa
3 changed files with 45 additions and 15 deletions

View 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!()
}

View 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};