@@ -564,7 +564,7 @@ macro_rules! define_queries {
564
564
}
565
565
566
566
#[ inline]
567
- fn from_cycle_error (
567
+ fn value_from_cycle_error (
568
568
self ,
569
569
tcx: TyCtxt <' tcx>,
570
570
cycle: & [ QueryInfo <DepKind >] ,
@@ -609,17 +609,11 @@ macro_rules! define_queries {
609
609
}
610
610
} ) *
611
611
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>;
615
614
616
615
#[ 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 {
623
617
restore:: <query_values:: $name<' tcx>>( value)
624
618
}
625
619
} ) *
@@ -695,7 +689,6 @@ macro_rules! define_queries {
695
689
use $crate:: profiling_support:: QueryKeyStringCache ;
696
690
use rustc_query_system:: query:: QueryMap ;
697
691
use rustc_middle:: dep_graph:: DepKind ;
698
- use crate :: QueryToConfig ;
699
692
700
693
pub ( super ) const fn dummy_query_struct<' tcx>( ) -> QueryStruct <' tcx> {
701
694
fn noop_try_collect_active_jobs( _: QueryCtxt <' _>, _: & mut QueryMap <DepKind >) -> Option <( ) > {
@@ -740,7 +733,7 @@ macro_rules! define_queries {
740
733
} ,
741
734
encode_query_results: expand_if_cached!( [ $( $modifiers) * ] , |qcx, encoder, query_result_index|
742
735
$crate:: on_disk_cache:: encode_query_results:: <super :: queries:: $name<' tcx>>(
743
- super :: queries:: $name:: config ( qcx ) ,
736
+ super :: queries:: $name:: default ( ) ,
744
737
qcx,
745
738
encoder,
746
739
query_result_index,
0 commit comments