@@ -1494,7 +1494,9 @@ pub(crate) fn build_index(
1494
1494
let search_unbox = match id {
1495
1495
RenderTypeId :: Mut => false ,
1496
1496
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 ,
1498
1500
RenderTypeId :: Primitive ( ..) => false ,
1499
1501
RenderTypeId :: AssociatedType ( ..) => false ,
1500
1502
// 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(
1855
1857
}
1856
1858
clean:: Primitive ( p) => Some ( RenderTypeId :: Primitive ( p) ) ,
1857
1859
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 ) ) ,
1859
1861
// The type parameters are converted to generics in `simplify_fn_type`
1860
1862
clean:: Slice ( _) => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: Slice ) ) ,
1861
1863
clean:: Array ( _, _) => Some ( RenderTypeId :: Primitive ( clean:: PrimitiveType :: Array ) ) ,
@@ -2113,7 +2115,8 @@ fn simplify_fn_type<'a, 'tcx>(
2113
2115
generics : Some ( ty_generics) ,
2114
2116
} ) ;
2115
2117
}
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_) => {
2117
2120
let mut ty_generics = Vec :: new ( ) ;
2118
2121
if mutability. is_mut ( ) {
2119
2122
ty_generics. push ( RenderType {
0 commit comments