@@ -564,7 +564,7 @@ macro_rules! define_queries {
564564 }
565565
566566 #[ inline]
567- fn from_cycle_error (
567+ fn value_from_cycle_error (
568568 self ,
569569 tcx: TyCtxt <' tcx>,
570570 cycle: & [ QueryInfo <DepKind >] ,
@@ -609,17 +609,11 @@ macro_rules! define_queries {
609609 }
610610 } ) *
611611
612- $( impl <' tcx> QueryToConfig <' tcx> for queries:: $name<' tcx> {
613- type Value = query_values:: $name<' tcx>;
614- type Config = Self ;
612+ $( impl <' tcx> QueryConfigRestored <' tcx> for queries:: $name<' tcx> {
613+ type RestoredValue = query_values:: $name<' tcx>;
615614
616615 #[ inline( always) ]
617- fn config( _qcx: QueryCtxt <' tcx>) -> Self :: Config {
618- Self :: default ( )
619- }
620-
621- #[ inline( always) ]
622- fn restore( value: <Self :: Config as QueryConfig <QueryCtxt <' tcx>>>:: Value ) -> Self :: Value {
616+ fn restore( value: <Self as QueryConfig <QueryCtxt <' tcx>>>:: Value ) -> Self :: RestoredValue {
623617 restore:: <query_values:: $name<' tcx>>( value)
624618 }
625619 } ) *
@@ -695,7 +689,6 @@ macro_rules! define_queries {
695689 use $crate:: profiling_support:: QueryKeyStringCache ;
696690 use rustc_query_system:: query:: QueryMap ;
697691 use rustc_middle:: dep_graph:: DepKind ;
698- use crate :: QueryToConfig ;
699692
700693 pub ( super ) const fn dummy_query_struct<' tcx>( ) -> QueryStruct <' tcx> {
701694 fn noop_try_collect_active_jobs( _: QueryCtxt <' _>, _: & mut QueryMap <DepKind >) -> Option <( ) > {
@@ -740,7 +733,7 @@ macro_rules! define_queries {
740733 } ,
741734 encode_query_results: expand_if_cached!( [ $( $modifiers) * ] , |qcx, encoder, query_result_index|
742735 $crate:: on_disk_cache:: encode_query_results:: <super :: queries:: $name<' tcx>>(
743- super :: queries:: $name:: config ( qcx ) ,
736+ super :: queries:: $name:: default ( ) ,
744737 qcx,
745738 encoder,
746739 query_result_index,
0 commit comments