Move the query system to rustc_query_impl.

This commit is contained in:
Camille GILLOT 2021-01-19 20:40:16 +01:00
parent 71f749a683
commit 4581d16bcb
17 changed files with 170 additions and 83 deletions

View file

@ -495,6 +495,7 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
}
TokenStream::from(quote! {
#[macro_export]
macro_rules! rustc_query_append {
([$($macro:tt)*][$($other:tt)*]) => {
$($macro)* {
@ -514,11 +515,13 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
);
}
}
#[macro_export]
macro_rules! rustc_cached_queries {
($($macro:tt)*) => {
$($macro)*(#cached_queries);
}
}
#[macro_export]
macro_rules! rustc_query_description {
() => { #query_description_stream }
}