Skip to content

Commit

Permalink
Remove unsued variable in query macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Noratrieb committed Oct 14, 2022
1 parent 5819f41 commit 1566273
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions compiler/rustc_macros/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 1566273

Please sign in to comment.