aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/lib.rs')
-rw-r--r--crates/ra_hir_def/src/lib.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/crates/ra_hir_def/src/lib.rs b/crates/ra_hir_def/src/lib.rs
index d11b573e5..8ed1599ff 100644
--- a/crates/ra_hir_def/src/lib.rs
+++ b/crates/ra_hir_def/src/lib.rs
@@ -366,19 +366,7 @@ impl HasModule for AssocContainerId {
366 } 366 }
367} 367}
368 368
369impl HasModule for FunctionLoc { 369impl<N: AstNode> HasModule for AssocItemLoc<N> {
370 fn module(&self, db: &impl db::DefDatabase) -> ModuleId {
371 self.container.module(db)
372 }
373}
374
375impl HasModule for TypeAliasLoc {
376 fn module(&self, db: &impl db::DefDatabase) -> ModuleId {
377 self.container.module(db)
378 }
379}
380
381impl HasModule for ConstLoc {
382 fn module(&self, db: &impl db::DefDatabase) -> ModuleId { 370 fn module(&self, db: &impl db::DefDatabase) -> ModuleId {
383 self.container.module(db) 371 self.container.module(db)
384 } 372 }