@@ -4,8 +4,8 @@ use std::hash::Hash;
44use rustdoc_json_types:: {
55 Constant , Crate , DynTrait , Enum , FnDecl , Function , FunctionPointer , GenericArg , GenericArgs ,
66 GenericBound , GenericParamDef , Generics , Id , Impl , Import , ItemEnum , Method , Module , OpaqueTy ,
7- Path , ProcMacro , Static , Struct , StructKind , Term , Trait , TraitAlias , Type , TypeBinding ,
8- TypeBindingKind , Typedef , Union , Variant , WherePredicate ,
7+ Path , Primitive , ProcMacro , Static , Struct , StructKind , Term , Trait , TraitAlias , Type ,
8+ TypeBinding , TypeBindingKind , Typedef , Union , Variant , WherePredicate ,
99} ;
1010
1111use crate :: { item_kind:: Kind , Error , ErrorKind } ;
@@ -76,7 +76,7 @@ impl<'a> Validator<'a> {
7676 ItemEnum :: ForeignType => { } // nop
7777 ItemEnum :: Macro ( x) => self . check_macro ( x) ,
7878 ItemEnum :: ProcMacro ( x) => self . check_proc_macro ( x) ,
79- ItemEnum :: PrimitiveType ( x) => self . check_primitive_type ( x) ,
79+ ItemEnum :: Primitive ( x) => self . check_primitive_type ( x) ,
8080 ItemEnum :: Module ( x) => self . check_module ( x) ,
8181 // FIXME: Why don't these have their own structs?
8282 ItemEnum :: ExternCrate { .. } => { }
@@ -219,8 +219,8 @@ impl<'a> Validator<'a> {
219219 // nop
220220 }
221221
222- fn check_primitive_type ( & mut self , _ : & ' a str ) {
223- // nop
222+ fn check_primitive_type ( & mut self , x : & ' a Primitive ) {
223+ x . impls . iter ( ) . for_each ( |i| self . add_impl_id ( i ) ) ;
224224 }
225225
226226 fn check_generics ( & mut self , x : & ' a Generics ) {
0 commit comments