mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Remove one more Ty
This commit is contained in:
parent
a1639d0d1e
commit
61c3887b70
3 changed files with 3 additions and 8 deletions
|
@ -986,11 +986,6 @@ impl Type {
|
|||
None
|
||||
}
|
||||
|
||||
// FIXME: remove
|
||||
pub fn into_ty(self) -> Ty {
|
||||
self.ty.value
|
||||
}
|
||||
|
||||
pub fn as_adt(&self) -> Option<Adt> {
|
||||
let (adt, _subst) = self.ty.value.as_adt()?;
|
||||
Some(adt.into())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue