aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/resolver.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-11-26 19:56:35 +0000
committerGitHub <[email protected]>2019-11-26 19:56:35 +0000
commit7d088a16df5983b9dcf392c7361f19e099e713bf (patch)
tree94929e320d14ae8829f807ff83824fb94f44c375 /crates/ra_hir_def/src/resolver.rs
parentd770f22c53a88035e2836cc01533dab4223f80d5 (diff)
parentbed6869865ccfc6e72be26cb2041d83ab5cdbe3c (diff)
Merge #2421
2421: Cleanup r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/resolver.rs')
-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)