Skip to main content

rustc_expand_queries/
lib.rs

1#![allow(internal_features, reason = "proc macro internals")]
2#![feature(proc_macro_internals)]
3
4mod derive;
5
6pub fn setup_callbacks() {
7    rustc_expand::proc_macro::EXPAND_DERIVE_MACRO_CACHED
8        .swap(&(derive::expand_derive_macro_cached as _));
9}
10
11pub fn provide(providers: &mut rustc_middle::query::Providers) {
12    providers.derive_macro_expansion = derive::derive_macro_expansion;
13}