Skip to content

Commit 694b86e

Browse files
committed
rustc_queries!: Don't push the (cache) modifier twice
1 parent 63f4513 commit 694b86e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

compiler/rustc_macros/src/query.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,6 @@ pub(super) fn rustc_queries(input: TokenStream) -> TokenStream {
378378
return_result_from_ensure_ok,
379379
);
380380

381-
if modifiers.cache.is_some() {
382-
attributes.push(quote! { (cache) });
383-
}
384381
// Pass on the cache modifier
385382
if modifiers.cache.is_some() {
386383
attributes.push(quote! { (cache) });

0 commit comments

Comments
 (0)