@@ -298,7 +298,7 @@ pub(crate) fn create_query_frame<
298
298
K : Copy + Key + for < ' a > HashStable < StableHashingContext < ' a > > ,
299
299
> (
300
300
tcx : QueryCtxt < ' tcx > ,
301
- do_describe : fn ( QueryCtxt < ' tcx > , K ) -> String ,
301
+ do_describe : fn ( TyCtxt < ' tcx > , K ) -> String ,
302
302
key : K ,
303
303
kind : DepKind ,
304
304
name : & ' static str ,
@@ -307,7 +307,7 @@ pub(crate) fn create_query_frame<
307
307
// Showing visible path instead of any path is not that important in production.
308
308
let description = ty:: print:: with_no_visible_paths!(
309
309
// Force filename-line mode to avoid invoking `type_of` query.
310
- ty:: print:: with_forced_impl_filename_line!( do_describe( tcx, key) )
310
+ ty:: print:: with_forced_impl_filename_line!( do_describe( tcx. tcx , key) )
311
311
) ;
312
312
let description =
313
313
if tcx. sess . verbose ( ) { format ! ( "{} [{}]" , description, name) } else { description } ;
@@ -466,10 +466,6 @@ macro_rules! define_queries {
466
466
}
467
467
468
468
impl <' tcx> QueryDescription <QueryCtxt <' tcx>> for queries:: $name<' tcx> {
469
- fn describe( tcx: QueryCtxt <' tcx>, key: Self :: Key ) -> String {
470
- :: rustc_middle:: query:: descs:: $name( tcx. tcx, key)
471
- }
472
-
473
469
#[ inline]
474
470
fn cache_on_disk( tcx: TyCtxt <' tcx>, key: & Self :: Key ) -> bool {
475
471
:: rustc_middle:: query:: cached:: $name( tcx, key)
@@ -583,7 +579,7 @@ macro_rules! define_queries {
583
579
use rustc_middle:: ty:: TyCtxt ;
584
580
use $crate:: plumbing:: { QueryStruct , QueryCtxt } ;
585
581
use $crate:: profiling_support:: QueryKeyStringCache ;
586
- use rustc_query_system:: query:: { QueryDescription , QueryMap } ;
582
+ use rustc_query_system:: query:: QueryMap ;
587
583
588
584
pub ( super ) const fn dummy_query_struct<' tcx>( ) -> QueryStruct <' tcx> {
589
585
fn noop_try_collect_active_jobs( _: QueryCtxt <' _>, _: & mut QueryMap ) -> Option <( ) > {
@@ -610,7 +606,7 @@ macro_rules! define_queries {
610
606
let make_query = |tcx, key| {
611
607
let kind = rustc_middle:: dep_graph:: DepKind :: $name;
612
608
let name = stringify!( $name) ;
613
- $crate:: plumbing:: create_query_frame( tcx, super :: queries :: $name :: describe , key, kind, name)
609
+ $crate:: plumbing:: create_query_frame( tcx, rustc_middle :: query :: descs :: $name , key, kind, name)
614
610
} ;
615
611
tcx. queries. $name. try_collect_active_jobs(
616
612
tcx,
0 commit comments