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