about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-search-load-itemtype/bar.rs
blob: 0416b1b75b5946b456a32a64dec623fd21a533e0 (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
#![crate_type = "proc-macro"]

extern crate proc_macro;
use proc_macro::*;

//@ has bar/macro.a_procmacro.html
//@ hasraw search.index/name/*.js a_procmacro
#[proc_macro]
pub fn a_procmacro(_: TokenStream) -> TokenStream {
    unimplemented!()
}

//@ has bar/attr.a_procattribute.html
//@ hasraw search.index/name/*.js a_procattribute
#[proc_macro_attribute]
pub fn a_procattribute(_: TokenStream, _: TokenStream) -> TokenStream {
    unimplemented!()
}

//@ has bar/derive.AProcDerive.html
//@ !has bar/derive.a_procderive.html
//@ hasraw search.index/name/*.js AProcDerive
//@ !hasraw search.index/name/*.js a_procderive
#[proc_macro_derive(AProcDerive)]
pub fn a_procderive(_: TokenStream) -> TokenStream {
    unimplemented!()
}