]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_expand/src/lib.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / compiler / rustc_expand / src / lib.rs
CommitLineData
04454e1e 1#![allow(rustc::potential_query_instability)]
923072b8 2#![feature(array_windows)]
5099ac24
FG
3#![feature(associated_type_bounds)]
4#![feature(associated_type_defaults)]
94222f64 5#![feature(if_let_guard)]
5e7ed085 6#![feature(let_chains)]
3c0e092e 7#![feature(let_else)]
04454e1e 8#![feature(macro_metavar_expr)]
e74abb32
XL
9#![feature(proc_macro_diagnostic)]
10#![feature(proc_macro_internals)]
11#![feature(proc_macro_span)]
ba9703b0 12#![feature(try_blocks)]
94222f64 13#![recursion_limit = "256"]
e74abb32 14
3dfed10e
XL
15#[macro_use]
16extern crate rustc_macros;
17
e74abb32
XL
18extern crate proc_macro as pm;
19
e74abb32
XL
20mod placeholders;
21mod proc_macro_server;
22
e74abb32 23pub use mbe::macro_rules::compile_declarative_macro;
923072b8 24pub(crate) use rustc_span::hygiene;
e74abb32
XL
25pub mod base;
26pub mod build;
ba9703b0
XL
27#[macro_use]
28pub mod config;
e74abb32 29pub mod expand;
ba9703b0 30pub mod module;
e74abb32
XL
31pub mod proc_macro;
32
923072b8 33pub(crate) mod mbe;
60c5eb7d
XL
34
35// HACK(Centril, #64197): These shouldn't really be here.
36// Rather, they should be with their respective modules which are defined in other crates.
37// However, since for now constructing a `ParseSess` sorta requires `config` from this crate,
5e7ed085 38// these tests will need to live here in the interim.
60c5eb7d
XL
39
40#[cfg(test)]
41mod tests;
42#[cfg(test)]
43mod parse {
60c5eb7d 44 mod tests;
60c5eb7d
XL
45}
46#[cfg(test)]
47mod tokenstream {
60c5eb7d
XL
48 mod tests;
49}
50#[cfg(test)]
51mod mut_visit {
60c5eb7d
XL
52 mod tests;
53}