File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -851,13 +851,19 @@ impl Library {
851
851
let gobject_id = env. library . find_type ( 0 , "GObject.Object" ) . unwrap ( ) ;
852
852
853
853
for & super_tid in env. class_hierarchy . supertypes ( tid) {
854
+ let ty = env. library . type_ ( super_tid) ;
854
855
let full_parent_name = format ! ( "{}.{}" ,
855
856
env. namespaces[ super_tid. ns_id] . crate_name,
856
- env . library . type_ ( super_tid ) . get_name( ) ) ;
857
+ ty . get_name( ) ) ;
857
858
if super_tid != gobject_id &&
858
859
env. type_status ( & super_tid. full_name ( & env. library ) ) . ignored ( ) &&
859
860
parents. insert ( full_parent_name. clone ( ) ) {
860
- println ! ( "[NOT GENERATED PARENT] {}" , full_parent_name) ;
861
+ if let Some ( version) = ty. get_deprecated_version ( ) {
862
+ println ! ( "[NOT GENERATED PARENT] {} (deprecated in {})" ,
863
+ full_parent_name, version) ;
864
+ } else {
865
+ println ! ( "[NOT GENERATED PARENT] {}" , full_parent_name) ;
866
+ }
861
867
}
862
868
}
863
869
}
You can’t perform that action at this time.
0 commit comments