aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/resolver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/resolver.rs b/crates/ra_hir_def/src/resolver.rs
index c40f41717..5155365cc 100644
--- a/crates/ra_hir_def/src/resolver.rs
+++ b/crates/ra_hir_def/src/resolver.rs
@@ -484,7 +484,7 @@ impl Resolver {
484 } 484 }
485} 485}
486 486
487pub trait HasResolver { 487pub trait HasResolver: Copy {
488 /// Builds a resolver for type references inside this def. 488 /// Builds a resolver for type references inside this def.
489 fn resolver(self, db: &impl DefDatabase) -> Resolver; 489 fn resolver(self, db: &impl DefDatabase) -> Resolver;
490} 490}
@@ -502,7 +502,7 @@ impl HasResolver for TraitId {
502 } 502 }
503} 503}
504 504
505impl<T: Into<AdtId>> HasResolver for T { 505impl<T: Into<AdtId> + Copy> HasResolver for T {
506 fn resolver(self, db: &impl DefDatabase) -> Resolver { 506 fn resolver(self, db: &impl DefDatabase) -> Resolver {
507 let def = self.into(); 507 let def = self.into();
508 def.module(db) 508 def.module(db)