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 {
1413
1413
}
1414
1414
}
1415
1415
RawPointer ( ..) => Some ( PrimitiveType :: RawPointer ) ,
1416
- BorrowedRef { type_ : box Generic ( ..) , .. } => Some ( PrimitiveType :: Reference ) ,
1417
1416
BareFunction ( ..) => Some ( PrimitiveType :: Fn ) ,
1418
1417
Never => Some ( PrimitiveType :: Never ) ,
1419
1418
_ => None ,
@@ -1472,13 +1471,7 @@ impl Type {
1472
1471
}
1473
1472
1474
1473
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 ( )
1482
1475
}
1483
1476
1484
1477
crate fn projection ( & self ) -> Option < ( & Type , DefId , Symbol ) > {
You can’t perform that action at this time.
0 commit comments