Remove unsued variable in query macro
This commit is contained in:
parent
5819f419a7
commit
1566273f48
@ -289,7 +289,6 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
|
||||
|
||||
let mut query_stream = quote! {};
|
||||
let mut query_description_stream = quote! {};
|
||||
let mut cached_queries = quote! {};
|
||||
|
||||
for query in queries.0 {
|
||||
let Query { name, arg, modifiers, .. } = &query;
|
||||
@ -299,12 +298,6 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
|
||||
_ => quote! { #result_full },
|
||||
};
|
||||
|
||||
if modifiers.cache.is_some() {
|
||||
cached_queries.extend(quote! {
|
||||
#name,
|
||||
});
|
||||
}
|
||||
|
||||
let mut attributes = Vec::new();
|
||||
|
||||
macro_rules! passthrough {
|
||||
|
Loading…
Reference in New Issue
Block a user