@@ -1494,7 +1494,9 @@ pub(crate) fn build_index(
14941494 let search_unbox = match id {
14951495 RenderTypeId :: Mut => false ,
14961496 RenderTypeId :: DefId ( defid) => utils:: has_doc_flag ( tcx, defid, sym:: search_unbox) ,
1497- RenderTypeId :: Primitive ( PrimitiveType :: Reference | PrimitiveType :: Tuple ) => true ,
1497+ RenderTypeId :: Primitive (
1498+ PrimitiveType :: Reference | PrimitiveType :: RawPointer | PrimitiveType :: Tuple ,
1499+ ) => true ,
14981500 RenderTypeId :: Primitive ( ..) => false ,
14991501 RenderTypeId :: AssociatedType ( ..) => false ,
15001502 // this bool is only used by `insert_into_map`, so it doesn't matter what we set here
@@ -1855,7 +1857,7 @@ fn get_index_type_id(
18551857 }
18561858 clean:: Primitive ( p) => Some ( RenderTypeId :: Primitive ( p) ) ,
18571859 clean:: BorrowedRef { .. } => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: Reference ) ) ,
1858- clean:: RawPointer { .. } => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: RawPointer ) ) ,
1860+ clean:: RawPointer { .. } => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: RawPointer ) ) ,
18591861 // The type parameters are converted to generics in `simplify_fn_type`
18601862 clean:: Slice ( _) => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: Slice ) ) ,
18611863 clean:: Array ( _, _) => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: Array ) ) ,
@@ -2113,7 +2115,8 @@ fn simplify_fn_type<'a, 'tcx>(
21132115 generics : Some ( ty_generics) ,
21142116 } ) ;
21152117 }
2116- Type :: BorrowedRef { lifetime : _, mutability, ref type_ } | Type :: RawPointer ( mutability, ref type_) => {
2118+ Type :: BorrowedRef { lifetime : _, mutability, ref type_ }
2119+ | Type :: RawPointer ( mutability, ref type_) => {
21172120 let mut ty_generics = Vec :: new ( ) ;
21182121 if mutability. is_mut ( ) {
21192122 ty_generics. push ( RenderType {
0 commit comments