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