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