Move things in hir_ty into submodules

- all the types that will be replaced by Chalk go to `types`
 - `TypeWalk` impls go to `walk`
This commit is contained in:
Florian Diebold 2021-04-04 20:22:00 +02:00
parent bc8b278841
commit 508a1ecad3
11 changed files with 751 additions and 707 deletions

View file

@ -1822,7 +1822,7 @@ impl Type {
match db.trait_solve(self.krate, goal)? {
Solution::Unique(SolutionVariables(subst)) => subst
.value
.interned(&Interner)
.interned()
.first()
.map(|ty| self.derived(ty.assert_ty_ref(&Interner).clone())),
Solution::Ambig(_) => None,