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