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