File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1413,7 +1413,6 @@ impl Type {
14131413 }
14141414 }
14151415 RawPointer ( ..) => Some ( PrimitiveType :: RawPointer ) ,
1416- BorrowedRef { type_ : box Generic ( ..) , .. } => Some ( PrimitiveType :: Reference ) ,
14171416 BareFunction ( ..) => Some ( PrimitiveType :: Fn ) ,
14181417 Never => Some ( PrimitiveType :: Never ) ,
14191418 _ => None ,
@@ -1472,13 +1471,7 @@ impl Type {
14721471 }
14731472
14741473 crate fn is_primitive ( & self ) -> bool {
1475- match self {
1476- Self :: Primitive ( _) => true ,
1477- Self :: BorrowedRef { ref type_, .. } | Self :: RawPointer ( _, ref type_) => {
1478- type_. is_primitive ( )
1479- }
1480- _ => false ,
1481- }
1474+ self . primitive_type ( ) . is_some ( )
14821475 }
14831476
14841477 crate fn projection ( & self ) -> Option < ( & Type , DefId , Symbol ) > {
You can’t perform that action at this time.
0 commit comments