aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-20 11:29:25 +0000
committerAleksey Kladov <[email protected]>2019-12-20 11:29:25 +0000
commitf42697e54b9d0a040011cb04c266d51710e249f1 (patch)
treed2016e6e3ce596e6a4b3e44f4894b5a411c62789 /crates/ra_hir/src
parentfe1b160dcfdeb3f582ccae1440c9580ade0beb39 (diff)
Support for nested traits
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/code_model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index d20e9de63..35e1f752b 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -553,7 +553,7 @@ pub struct Trait {
553 553
554impl Trait { 554impl Trait {
555 pub fn module(self, db: &impl DefDatabase) -> Module { 555 pub fn module(self, db: &impl DefDatabase) -> Module {
556 Module { id: self.id.lookup(db).container } 556 Module { id: self.id.lookup(db).container.module(db) }
557 } 557 }
558 558
559 pub fn name(self, db: &impl DefDatabase) -> Name { 559 pub fn name(self, db: &impl DefDatabase) -> Name {