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