mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Relax trait solving more for completion
This commit is contained in:
parent
ab7774545c
commit
291bd81e74
@ -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…
Reference in New Issue
Block a user