diff options
author | Aleksey Kladov <[email protected]> | 2019-12-20 11:29:25 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-20 11:29:25 +0000 |
commit | f42697e54b9d0a040011cb04c266d51710e249f1 (patch) | |
tree | d2016e6e3ce596e6a4b3e44f4894b5a411c62789 /crates/ra_hir/src | |
parent | fe1b160dcfdeb3f582ccae1440c9580ade0beb39 (diff) |
Support for nested traits
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
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 | ||
554 | impl Trait { | 554 | impl 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 { |