mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
rename: as_raw_ptr_ty
to remove_raw_ptr
This commit is contained in:
parent
9a481d1ecf
commit
832f8bfe2b
@ -3190,7 +3190,7 @@ impl Type {
|
||||
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) {
|
||||
Some(self.derived(ty.clone()))
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user