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