2019-10-16 10:59:30 +02:00
|
|
|
#![feature(crate_visibility_modifier)]
|
2019-10-19 00:54:17 +03:00
|
|
|
#![feature(decl_macro)]
|
2021-02-22 19:49:09 +03:00
|
|
|
#![feature(destructuring_assignment)]
|
2021-06-07 20:17:48 -05:00
|
|
|
#![feature(format_args_capture)]
|
2021-08-16 17:29:49 +02:00
|
|
|
#![feature(if_let_guard)]
|
2021-03-08 15:32:41 -08:00
|
|
|
#![feature(iter_zip)]
|
2019-10-16 10:59:30 +02:00
|
|
|
#![feature(proc_macro_diagnostic)]
|
|
|
|
#![feature(proc_macro_internals)]
|
|
|
|
#![feature(proc_macro_span)]
|
2020-03-08 22:21:37 +01:00
|
|
|
#![feature(try_blocks)]
|
2021-08-26 17:18:03 +03:00
|
|
|
#![recursion_limit = "256"]
|
2019-10-16 10:59:30 +02:00
|
|
|
|
2020-06-11 15:49:57 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_macros;
|
|
|
|
|
2019-10-16 10:59:30 +02:00
|
|
|
extern crate proc_macro as pm;
|
|
|
|
|
|
|
|
mod placeholders;
|
|
|
|
mod proc_macro_server;
|
|
|
|
|
|
|
|
pub use mbe::macro_rules::compile_declarative_macro;
|
2019-12-31 20:15:40 +03:00
|
|
|
crate use rustc_span::hygiene;
|
2019-10-16 10:59:30 +02:00
|
|
|
pub mod base;
|
|
|
|
pub mod build;
|
2020-03-08 22:32:25 +01:00
|
|
|
#[macro_use]
|
|
|
|
pub mod config;
|
2019-10-16 10:59:30 +02:00
|
|
|
pub mod expand;
|
2020-03-08 22:21:37 +01:00
|
|
|
pub mod module;
|
2019-10-16 10:59:30 +02:00
|
|
|
pub mod proc_macro;
|
|
|
|
|
|
|
|
crate mod mbe;
|
2019-10-10 10:26:10 +02: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,
|
|
|
|
// these tests will need to live here in the iterim.
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
|
|
|
#[cfg(test)]
|
|
|
|
mod parse {
|
|
|
|
mod tests;
|
|
|
|
}
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tokenstream {
|
|
|
|
mod tests;
|
|
|
|
}
|
|
|
|
#[cfg(test)]
|
|
|
|
mod mut_visit {
|
|
|
|
mod tests;
|
|
|
|
}
|