@@ -470,12 +470,6 @@ impl<'tcx> QueryDescription for queries::trait_impls_of<'tcx> {
470
470
}
471
471
}
472
472
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
-
479
473
impl < ' tcx > QueryDescription for queries:: is_object_safe < ' tcx > {
480
474
fn describe ( tcx : TyCtxt , def_id : DefId ) -> String {
481
475
format ! ( "determine object safety of trait `{}`" , tcx. item_path_str( def_id) )
@@ -966,10 +960,7 @@ define_maps! { <'tcx>
966
960
[ ] const_is_rvalue_promotable_to_static: ConstIsRvaluePromotableToStatic ( DefId ) -> bool ,
967
961
[ ] is_mir_available: IsMirAvailable ( DefId ) -> bool ,
968
962
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 >,
973
964
[ ] specialization_graph_of: SpecializationGraph ( DefId ) -> Rc <specialization_graph:: Graph >,
974
965
[ ] is_object_safe: ObjectSafety ( DefId ) -> bool ,
975
966
@@ -1045,10 +1036,6 @@ fn crate_variances<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
1045
1036
DepConstructor :: CrateVariances
1046
1037
}
1047
1038
1048
- fn relevant_trait_impls_for < ' tcx > ( ( def_id, t) : ( DefId , SimplifiedType ) ) -> DepConstructor < ' tcx > {
1049
- DepConstructor :: RelevantTraitImpls ( def_id, t)
1050
- }
1051
-
1052
1039
fn is_copy_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1053
1040
let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1054
1041
. unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
0 commit comments