@@ -4,8 +4,8 @@ use std::hash::Hash;
4
4
use rustdoc_json_types:: {
5
5
Constant , Crate , DynTrait , Enum , FnDecl , Function , FunctionPointer , GenericArg , GenericArgs ,
6
6
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 ,
9
9
} ;
10
10
11
11
use crate :: { item_kind:: Kind , Error , ErrorKind } ;
@@ -76,7 +76,7 @@ impl<'a> Validator<'a> {
76
76
ItemEnum :: ForeignType => { } // nop
77
77
ItemEnum :: Macro ( x) => self . check_macro ( x) ,
78
78
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) ,
80
80
ItemEnum :: Module ( x) => self . check_module ( x) ,
81
81
// FIXME: Why don't these have their own structs?
82
82
ItemEnum :: ExternCrate { .. } => { }
@@ -219,8 +219,8 @@ impl<'a> Validator<'a> {
219
219
// nop
220
220
}
221
221
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 ) ) ;
224
224
}
225
225
226
226
fn check_generics ( & mut self , x : & ' a Generics ) {
0 commit comments