Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
| -rw-r--r-- | crates/hir_ty/src/method_resolution.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs index 3fbb6fea19..6af39828be 100644 --- a/crates/hir_ty/src/method_resolution.rs +++ b/crates/hir_ty/src/method_resolution.rs @@ -719,7 +719,7 @@ fn iterate_trait_method_candidates( let env_traits = match self_ty.value.kind(&Interner) { TyKind::Placeholder(_) => { // if we have `T: Trait` in the param env, the trait doesn't need to be in scope - env.traits_in_scope_from_clauses(&self_ty.value) + env.traits_in_scope_from_clauses(self_ty.value.clone()) .flat_map(|t| all_super_traits(db.upcast(), t)) .collect() } |