2022-06-08 21:46:51 -05:00
|
|
|
#![feature(array_windows)]
|
2022-01-05 00:15:44 -06:00
|
|
|
#![feature(associated_type_bounds)]
|
|
|
|
#![feature(associated_type_defaults)]
|
2021-08-16 10:29:49 -05:00
|
|
|
#![feature(if_let_guard)]
|
2022-07-12 13:36:59 -05:00
|
|
|
#![cfg_attr(bootstrap, feature(let_chains))]
|
2021-10-15 20:45:14 -05:00
|
|
|
#![feature(let_else)]
|
2022-04-07 06:13:41 -05:00
|
|
|
#![feature(macro_metavar_expr)]
|
2019-10-16 03:59:30 -05:00
|
|
|
#![feature(proc_macro_diagnostic)]
|
|
|
|
#![feature(proc_macro_internals)]
|
|
|
|
#![feature(proc_macro_span)]
|
2022-06-22 07:24:35 -05:00
|
|
|
#![feature(rustc_attrs)]
|
2020-03-08 16:21:37 -05:00
|
|
|
#![feature(try_blocks)]
|
2021-08-26 09:18:03 -05:00
|
|
|
#![recursion_limit = "256"]
|
2019-10-16 03:59:30 -05:00
|
|
|
|
2020-06-11 09:49:57 -05:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_macros;
|
|
|
|
|
2019-10-16 03:59:30 -05:00
|
|
|
extern crate proc_macro as pm;
|
|
|
|
|
|
|
|
mod placeholders;
|
|
|
|
mod proc_macro_server;
|
|
|
|
|
|
|
|
pub use mbe::macro_rules::compile_declarative_macro;
|
2022-05-20 18:51:09 -05:00
|
|
|
pub(crate) use rustc_span::hygiene;
|
2019-10-16 03:59:30 -05:00
|
|
|
pub mod base;
|
|
|
|
pub mod build;
|
2020-03-08 16:32:25 -05:00
|
|
|
#[macro_use]
|
|
|
|
pub mod config;
|
2019-10-16 03:59:30 -05:00
|
|
|
pub mod expand;
|
2020-03-08 16:21:37 -05:00
|
|
|
pub mod module;
|
2019-10-16 03:59:30 -05:00
|
|
|
pub mod proc_macro;
|
|
|
|
|
2022-05-20 18:51:09 -05:00
|
|
|
pub(crate) mod mbe;
|
2019-10-10 03:26:10 -05:00
|
|
|
|
|
|
|
// HACK(Centril, #64197): These shouldn't really be here.
|
|
|
|
// Rather, they should be with their respective modules which are defined in other crates.
|
|
|
|
// However, since for now constructing a `ParseSess` sorta requires `config` from this crate,
|
2022-03-30 00:39:38 -05:00
|
|
|
// these tests will need to live here in the interim.
|
2019-10-10 03:26:10 -05:00
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
|
|
|
#[cfg(test)]
|
|
|
|
mod parse {
|
|
|
|
mod tests;
|
|
|
|
}
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tokenstream {
|
|
|
|
mod tests;
|
|
|
|
}
|
|
|
|
#[cfg(test)]
|
|
|
|
mod mut_visit {
|
|
|
|
mod tests;
|
|
|
|
}
|