]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_expand/src/lib.rs
521ca2135c6f217ad573c1ffbf437ade2652c08b
[rust.git] / compiler / rustc_expand / src / lib.rs
1 #![feature(crate_visibility_modifier)]
2 #![feature(decl_macro)]
3 #![feature(destructuring_assignment)]
4 #![feature(format_args_capture)]
5 #![feature(if_let_guard)]
6 #![feature(iter_zip)]
7 #![feature(let_else)]
8 #![feature(proc_macro_diagnostic)]
9 #![feature(proc_macro_internals)]
10 #![feature(proc_macro_span)]
11 #![feature(try_blocks)]
12 #![recursion_limit = "256"]
13
14 #[macro_use]
15 extern crate rustc_macros;
16
17 extern crate proc_macro as pm;
18
19 mod placeholders;
20 mod proc_macro_server;
21
22 pub use mbe::macro_rules::compile_declarative_macro;
23 crate use rustc_span::hygiene;
24 pub mod base;
25 pub mod build;
26 #[macro_use]
27 pub mod config;
28 pub mod expand;
29 pub mod module;
30 pub mod proc_macro;
31
32 crate mod mbe;
33
34 // HACK(Centril, #64197): These shouldn't really be here.
35 // Rather, they should be with their respective modules which are defined in other crates.
36 // However, since for now constructing a `ParseSess` sorta requires `config` from this crate,
37 // these tests will need to live here in the iterim.
38
39 #[cfg(test)]
40 mod tests;
41 #[cfg(test)]
42 mod parse {
43     mod tests;
44 }
45 #[cfg(test)]
46 mod tokenstream {
47     mod tests;
48 }
49 #[cfg(test)]
50 mod mut_visit {
51     mod tests;
52 }