File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
librustc_incremental/persist Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -653,9 +653,6 @@ rustc_queries! {
653653 desc { |tcx| "building specialization graph of trait `{}`" , tcx. def_path_str( key) }
654654 cache_on_disk_if { true }
655655 }
656- query is_object_safe( key: DefId ) -> bool {
657- desc { |tcx| "determine object safety of trait `{}`" , tcx. def_path_str( key) }
658- }
659656 query object_safety_violations( key: DefId ) -> Vec <traits:: ObjectSafetyViolation > {
660657 desc { |tcx| "determine object safety of trait `{}`" , tcx. def_path_str( key) }
661658 }
Original file line number Diff line number Diff line change @@ -2998,6 +2998,10 @@ impl<'tcx> TyCtxt<'tcx> {
29982998 } ;
29992999 ( ident, scope)
30003000 }
3001+
3002+ pub fn is_object_safe ( self , key : DefId ) -> bool {
3003+ self . object_safety_violations ( key) . is_empty ( )
3004+ }
30013005}
30023006
30033007#[ derive( Clone , HashStable ) ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const BASE_STRUCT: &[&str] =
7878const BASE_TRAIT_DEF : & [ & str ] = & [
7979 label_strs:: associated_item_def_ids,
8080 label_strs:: generics_of,
81- label_strs:: is_object_safe ,
81+ label_strs:: object_safety_violations ,
8282 label_strs:: predicates_of,
8383 label_strs:: specialization_graph_of,
8484 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>(
772772 error
773773}
774774
775- fn is_object_safe ( tcx : TyCtxt < ' _ > , trait_def_id : DefId ) -> bool {
776- tcx. object_safety_violations ( trait_def_id) . is_empty ( )
777- }
778-
779775pub 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 } ;
781777}
You can’t perform that action at this time.
0 commit comments