diff options
Diffstat (limited to 'crates/ra_hir_def/src/lib.rs')
-rw-r--r-- | crates/ra_hir_def/src/lib.rs | 14 |
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 | ||
369 | impl HasModule for FunctionLoc { | 369 | impl<N: AstNode> HasModule for AssocItemLoc<N> { |
370 | fn module(&self, db: &impl db::DefDatabase) -> ModuleId { | ||
371 | self.container.module(db) | ||
372 | } | ||
373 | } | ||
374 | |||
375 | impl HasModule for TypeAliasLoc { | ||
376 | fn module(&self, db: &impl db::DefDatabase) -> ModuleId { | ||
377 | self.container.module(db) | ||
378 | } | ||
379 | } | ||
380 | |||
381 | impl 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 | } |