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