diff options
author | Aleksey Kladov <[email protected]> | 2018-11-27 23:49:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-27 23:49:28 +0000 |
commit | b2de95879a8d48cc4077895376b0aaed1e972169 (patch) | |
tree | 32b7ae7146237d3f861cf58c1dac70ed0d462059 /crates/ra_analysis/src/hir/mod.rs | |
parent | ec45dfea1e37ba40ea3e2c8c6df0991a3d49213f (diff) |
generalize location interner
Diffstat (limited to 'crates/ra_analysis/src/hir/mod.rs')
-rw-r--r-- | crates/ra_analysis/src/hir/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/hir/mod.rs b/crates/ra_analysis/src/hir/mod.rs index 9527cc33f..61e6c9913 100644 --- a/crates/ra_analysis/src/hir/mod.rs +++ b/crates/ra_analysis/src/hir/mod.rs | |||
@@ -38,7 +38,7 @@ pub(crate) enum Def { | |||
38 | 38 | ||
39 | impl DefId { | 39 | impl DefId { |
40 | pub(crate) fn resolve(self, db: &impl HirDatabase) -> Cancelable<Def> { | 40 | pub(crate) fn resolve(self, db: &impl HirDatabase) -> Cancelable<Def> { |
41 | let loc = db.id_maps().def_loc(self); | 41 | let loc = self.loc(db); |
42 | let res = match loc { | 42 | let res = match loc { |
43 | DefLoc::Module { id, source_root } => { | 43 | DefLoc::Module { id, source_root } => { |
44 | let descr = Module::new(db, source_root, id)?; | 44 | let descr = Module::new(db, source_root, id)?; |