Move the query system to rustc_query_impl.
This commit is contained in:
parent
71f749a683
commit
4581d16bcb
17 changed files with 170 additions and 83 deletions
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue