summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/cross-crate/auxiliary/proc_macro.rs
blob: 0d5a954075df22c24bc813c3bccd7aaf6c2ac7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// force-host
// no-prefer-dynamic
// compile-flags: --crate-type proc-macro
#![crate_type="proc-macro"]
#![crate_name="proc_macro_inner"]

extern crate proc_macro;

use proc_macro::TokenStream;

/// Links to [`OtherDerive`]
#[proc_macro_derive(DeriveA)]
pub fn a_derive(input: TokenStream) -> TokenStream {
    input
}

#[proc_macro_derive(OtherDerive)]
pub fn other_derive(input: TokenStream) -> TokenStream {
    input
}