File tree 4 files changed +6
-9
lines changed
librustc_incremental/persist
4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -653,9 +653,6 @@ rustc_queries! {
653
653
desc { |tcx| "building specialization graph of trait `{}`" , tcx. def_path_str( key) }
654
654
cache_on_disk_if { true }
655
655
}
656
- query is_object_safe( key: DefId ) -> bool {
657
- desc { |tcx| "determine object safety of trait `{}`" , tcx. def_path_str( key) }
658
- }
659
656
query object_safety_violations( key: DefId ) -> Vec <traits:: ObjectSafetyViolation > {
660
657
desc { |tcx| "determine object safety of trait `{}`" , tcx. def_path_str( key) }
661
658
}
Original file line number Diff line number Diff line change @@ -2998,6 +2998,10 @@ impl<'tcx> TyCtxt<'tcx> {
2998
2998
} ;
2999
2999
( ident, scope)
3000
3000
}
3001
+
3002
+ pub fn is_object_safe ( self , key : DefId ) -> bool {
3003
+ self . object_safety_violations ( key) . is_empty ( )
3004
+ }
3001
3005
}
3002
3006
3003
3007
#[ derive( Clone , HashStable ) ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const BASE_STRUCT: &[&str] =
78
78
const BASE_TRAIT_DEF : & [ & str ] = & [
79
79
label_strs:: associated_item_def_ids,
80
80
label_strs:: generics_of,
81
- label_strs:: is_object_safe ,
81
+ label_strs:: object_safety_violations ,
82
82
label_strs:: predicates_of,
83
83
label_strs:: specialization_graph_of,
84
84
label_strs:: trait_def,
Original file line number Diff line number Diff line change @@ -772,10 +772,6 @@ fn contains_illegal_self_type_reference<'tcx>(
772
772
error
773
773
}
774
774
775
- fn is_object_safe ( tcx : TyCtxt < ' _ > , trait_def_id : DefId ) -> bool {
776
- tcx. object_safety_violations ( trait_def_id) . is_empty ( )
777
- }
778
-
779
775
pub fn provide ( providers : & mut ty:: query:: Providers < ' _ > ) {
780
- * providers = ty:: query:: Providers { is_object_safe , object_safety_violations, ..* providers } ;
776
+ * providers = ty:: query:: Providers { object_safety_violations, ..* providers } ;
781
777
}
You can’t perform that action at this time.
0 commit comments