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