]> git.lizzy.rs Git - rust.git/blob - src/librustc_macros/src/lib.rs
Stabilize proc macros in type positions
[rust.git] / src / librustc_macros / src / lib.rs
1 #![allow(rustc::default_hash_types)]
2
3 #![recursion_limit="128"]
4
5 extern crate proc_macro;
6
7 use synstructure::decl_derive;
8
9 use proc_macro::TokenStream;
10
11 mod hash_stable;
12 mod query;
13 mod symbols;
14
15 #[proc_macro]
16 pub fn rustc_queries(input: TokenStream) -> TokenStream {
17     query::rustc_queries(input)
18 }
19
20 #[proc_macro]
21 pub fn symbols(input: TokenStream) -> TokenStream {
22     symbols::symbols(input)
23 }
24
25 decl_derive!([HashStable, attributes(stable_hasher)] => hash_stable::hash_stable_derive);