@@ -470,12 +470,6 @@ impl<'tcx> QueryDescription for queries::trait_impls_of<'tcx> {
470470 }
471471}
472472
473- impl < ' tcx > QueryDescription for queries:: relevant_trait_impls_for < ' tcx > {
474- fn describe ( tcx : TyCtxt , ( def_id, ty) : ( DefId , SimplifiedType ) ) -> String {
475- format ! ( "relevant impls for: `({}, {:?})`" , tcx. item_path_str( def_id) , ty)
476- }
477- }
478-
479473impl < ' tcx > QueryDescription for queries:: is_object_safe < ' tcx > {
480474 fn describe ( tcx : TyCtxt , def_id : DefId ) -> String {
481475 format ! ( "determine object safety of trait `{}`" , tcx. item_path_str( def_id) )
@@ -966,10 +960,7 @@ define_maps! { <'tcx>
966960 [ ] const_is_rvalue_promotable_to_static: ConstIsRvaluePromotableToStatic ( DefId ) -> bool ,
967961 [ ] is_mir_available: IsMirAvailable ( DefId ) -> bool ,
968962
969- [ ] trait_impls_of: TraitImpls ( DefId ) -> ty:: trait_def:: TraitImpls ,
970- // Note that TraitDef::for_each_relevant_impl() will do type simplication for you.
971- [ ] relevant_trait_impls_for: relevant_trait_impls_for( ( DefId , SimplifiedType ) )
972- -> ty:: trait_def:: TraitImpls ,
963+ [ ] trait_impls_of: TraitImpls ( DefId ) -> Rc <ty:: trait_def:: TraitImpls >,
973964 [ ] specialization_graph_of: SpecializationGraph ( DefId ) -> Rc <specialization_graph:: Graph >,
974965 [ ] is_object_safe: ObjectSafety ( DefId ) -> bool ,
975966
@@ -1045,10 +1036,6 @@ fn crate_variances<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
10451036 DepConstructor :: CrateVariances
10461037}
10471038
1048- fn relevant_trait_impls_for < ' tcx > ( ( def_id, t) : ( DefId , SimplifiedType ) ) -> DepConstructor < ' tcx > {
1049- DepConstructor :: RelevantTraitImpls ( def_id, t)
1050- }
1051-
10521039fn is_copy_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
10531040 let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
10541041 . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
0 commit comments