Remove unsued variable in query macro

This commit is contained in:
Nilstrieb 2022-10-10 18:11:53 +02:00 committed by nils
parent 5819f419a7
commit 1566273f48
No known key found for this signature in database

View File

@ -289,7 +289,6 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
let mut query_stream = quote! {}; let mut query_stream = quote! {};
let mut query_description_stream = quote! {}; let mut query_description_stream = quote! {};
let mut cached_queries = quote! {};
for query in queries.0 { for query in queries.0 {
let Query { name, arg, modifiers, .. } = &query; let Query { name, arg, modifiers, .. } = &query;
@ -299,12 +298,6 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
_ => quote! { #result_full }, _ => quote! { #result_full },
}; };
if modifiers.cache.is_some() {
cached_queries.extend(quote! {
#name,
});
}
let mut attributes = Vec::new(); let mut attributes = Vec::new();
macro_rules! passthrough { macro_rules! passthrough {