Remove last traces of adt from Ty

This commit is contained in:
Aleksey Kladov 2019-11-26 21:25:17 +03:00
parent 882fe0a47e
commit 936c6950e7
3 changed files with 7 additions and 6 deletions

View file

@ -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 {