-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only store valid proc marco item for doc link
- 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}; |