mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Remove last traces of adt from Ty
This commit is contained in:
parent
882fe0a47e
commit
936c6950e7
3 changed files with 7 additions and 6 deletions
|
@ -1104,7 +1104,7 @@ impl Type {
|
|||
|
||||
pub fn as_adt(&self) -> Option<Adt> {
|
||||
let (adt, _subst) = self.ty.value.as_adt()?;
|
||||
Some(adt)
|
||||
Some(adt.into())
|
||||
}
|
||||
|
||||
fn derived(&self, ty: Ty) -> Type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue