Move things from traits module to types as well

This commit is contained in:
Florian Diebold 2021-04-04 20:27:40 +02:00
parent 508a1ecad3
commit 645a9c3a27
12 changed files with 107 additions and 110 deletions

View file

@ -800,7 +800,7 @@ pub fn implements_trait_unique(
let goal = generic_implements_goal(db, env, trait_, ty.clone());
let solution = db.trait_solve(krate, goal);
matches!(solution, Some(crate::traits::Solution::Unique(_)))
matches!(solution, Some(crate::Solution::Unique(_)))
}
/// This creates Substs for a trait with the given Self type and type variables