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 @@ -1606,7 +1606,6 @@ impl Type {
1606
1606
}
1607
1607
}
1608
1608
RawPointer ( ..) => Some ( PrimitiveType :: RawPointer ) ,
1609
- BorrowedRef { type_ : box Generic ( ..) , .. } => Some ( PrimitiveType :: Reference ) ,
1610
1609
BareFunction ( ..) => Some ( PrimitiveType :: Fn ) ,
1611
1610
Never => Some ( PrimitiveType :: Never ) ,
1612
1611
_ => None ,
@@ -1665,13 +1664,7 @@ impl Type {
1665
1664
}
1666
1665
1667
1666
crate fn is_primitive ( & self ) -> bool {
1668
- match self {
1669
- Self :: Primitive ( _) => true ,
1670
- Self :: BorrowedRef { ref type_, .. } | Self :: RawPointer ( _, ref type_) => {
1671
- type_. is_primitive ( )
1672
- }
1673
- _ => false ,
1674
- }
1667
+ self . primitive_type ( ) . is_some ( )
1675
1668
}
1676
1669
1677
1670
crate fn projection ( & self ) -> Option < ( & Type , DefId , Symbol ) > {
You can’t perform that action at this time.
0 commit comments