Relax trait solving more for completion
This commit is contained in:
parent
ab7774545c
commit
291bd81e74
1 changed files with 1 additions and 7 deletions
|
|
@ -266,13 +266,7 @@ pub(crate) fn implements_trait(
|
|||
let goal = generic_implements_goal(db, env.clone(), trait_, ty.clone());
|
||||
let solution = db.trait_solve(krate, goal);
|
||||
|
||||
if let Some(solution) = solution {
|
||||
if let Solution::Unique(_) = solution {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
false
|
||||
solution.is_some()
|
||||
}
|
||||
|
||||
impl Ty {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue