aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir/src/ty/method_resolution.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/ra_hir/src/ty/method_resolution.rs b/crates/ra_hir/src/ty/method_resolution.rs
index 8731d6ba4..aa625a013 100644
--- a/crates/ra_hir/src/ty/method_resolution.rs
+++ b/crates/ra_hir/src/ty/method_resolution.rs
@@ -266,13 +266,7 @@ pub(crate) fn implements_trait(
266 let goal = generic_implements_goal(db, env.clone(), trait_, ty.clone()); 266 let goal = generic_implements_goal(db, env.clone(), trait_, ty.clone());
267 let solution = db.trait_solve(krate, goal); 267 let solution = db.trait_solve(krate, goal);
268 268
269 if let Some(solution) = solution { 269 solution.is_some()
270 if let Solution::Unique(_) = solution {
271 return true;
272 }
273 }
274
275 false
276} 270}
277 271
278impl Ty { 272impl Ty {