rust/compiler/rustc_expand/src/lib.rs

53 lines
1.2 KiB
Rust
Raw Normal View History

2021-08-16 10:30:23 -05:00
#![cfg_attr(bootstrap, feature(bindings_after_at))]
#![feature(crate_visibility_modifier)]
2019-10-18 16:54:17 -05:00
#![feature(decl_macro)]
#![feature(destructuring_assignment)]
#![feature(format_args_capture)]
2021-08-16 10:29:49 -05:00
#![feature(if_let_guard)]
2021-03-08 17:32:41 -06:00
#![feature(iter_zip)]
#![feature(proc_macro_diagnostic)]
#![feature(proc_macro_internals)]
#![feature(proc_macro_span)]
#![feature(try_blocks)]
2021-08-16 10:29:49 -05:00
#![cfg_attr(bootstrap, allow(incomplete_features))] // if_let_guard
#[macro_use]
extern crate rustc_macros;
extern crate proc_macro as pm;
mod placeholders;
mod proc_macro_server;
pub use mbe::macro_rules::compile_declarative_macro;
crate use rustc_span::hygiene;
pub mod base;
pub mod build;
2020-03-08 16:32:25 -05:00
#[macro_use]
pub mod config;
pub mod expand;
pub mod module;
pub mod proc_macro;
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,
// 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;
}