We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da60ffb commit 0128844Copy full SHA for 0128844
src/librustc_macros/src/query.rs
@@ -349,6 +349,7 @@ fn add_query_description_impl(
349
let tcx = tcx.as_ref().map(|t| quote! { #t }).unwrap_or(quote! { _ });
350
quote! {
351
#[inline]
352
+ #[allow(unused_variables)]
353
fn cache_on_disk(#tcx: TyCtxt<'_, 'tcx, 'tcx>, #key: Self::Key) -> bool {
354
#expr
355
}
@@ -364,6 +365,7 @@ fn add_query_description_impl(
364
365
let desc = modifiers.desc.as_ref().map(|(tcx, desc)| {
366
367
368
369
fn describe(
370
#tcx: TyCtxt<'_, '_, '_>,
371
#key: #arg,
0 commit comments