summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/intra-doc/proc-macro-doc.rs
blob: 8335fc902cc5b7c7b4e1fe40b8b0b9e23cd9e4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// check-pass
// force-host
// no-prefer-dynamic
// compile-flags: --crate-type proc-macro

#![deny(rustdoc::broken_intra_doc_links)]

extern crate proc_macro;
use proc_macro::*;

/// [`Unpin`]
#[proc_macro_derive(F)]
pub fn derive_(t: proc_macro::TokenStream) -> proc_macro::TokenStream {
    t
}

/// [`Vec`]
#[proc_macro_attribute]
pub fn attr(t: proc_macro::TokenStream, _: proc_macro::TokenStream) -> proc_macro::TokenStream {
    t
}

/// [`std::fs::File`]
#[proc_macro]
pub fn func(t: proc_macro::TokenStream) -> proc_macro::TokenStream {
    t
}