rename: as_raw_ptr_ty to remove_raw_ptr

This commit is contained in:
Swarnim Arun 2023-02-27 15:57:26 +05:30
parent 9a481d1ecf
commit 832f8bfe2b
No known key found for this signature in database
GPG key ID: C4DD2E124886C2D2

View file

@ -3190,7 +3190,7 @@ impl Type {
matches!(self.ty.kind(Interner), TyKind::Raw(..)) matches!(self.ty.kind(Interner), TyKind::Raw(..))
} }
pub fn as_raw_ptr_ty(&self) -> Option<Type> { pub fn remove_raw_ptr(&self) -> Option<Type> {
if let TyKind::Raw(_, ty) = self.ty.kind(Interner) { if let TyKind::Raw(_, ty) = self.ty.kind(Interner) {
Some(self.derived(ty.clone())) Some(self.derived(ty.clone()))
} else { } else {