Skip to main content

rustc_expand/
lib.rs

1// tidy-alphabetical-start
2#![allow(internal_features)]
3#![feature(associated_type_defaults)]
4#![feature(macro_metavar_expr)]
5#![feature(proc_macro_diagnostic)]
6#![feature(proc_macro_internals)]
7#![feature(try_blocks)]
8#![feature(yeet_expr)]
9// tidy-alphabetical-end
10
11mod build;
12mod errors;
13mod mbe;
14mod placeholders;
15mod proc_macro_server;
16mod stats;
17
18pub use mbe::macro_rules::{MacroRulesMacroExpander, compile_declarative_macro};
19pub mod base;
20pub mod config;
21pub mod expand;
22pub mod module;
23pub mod proc_macro;
24
25pub fn provide(providers: &mut rustc_middle::query::Providers) {
26    providers.derive_macro_expansion = proc_macro::provide_derive_macro_expansion;
27}