mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
rename: as_raw_ptr_ty
to remove_raw_ptr
This commit is contained in:
parent
9a481d1ecf
commit
832f8bfe2b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue