Skip to main content

rustc_expand/
lib.rs

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