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