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