diff options
author | Aleksey Kladov <[email protected]> | 2019-11-25 15:31:48 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-25 15:31:48 +0000 |
commit | 3e32ac4f866e2b9430dd1e91b2c7fa3824c646a9 (patch) | |
tree | 67c6c2d2ddc939da2bb3e3e6f0e5b87b53215da0 /crates/ra_hir/src/code_model.rs | |
parent | ecd1204804a2a3c8b9b98e4b9d18feef06ab51c7 (diff) |
More ids in Ty
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index ae730beb5..f7fc80d4e 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -538,14 +538,6 @@ pub enum DefWithBody { | |||
538 | impl_froms!(DefWithBody: Function, Const, Static); | 538 | impl_froms!(DefWithBody: Function, Const, Static); |
539 | 539 | ||
540 | impl DefWithBody { | 540 | impl DefWithBody { |
541 | pub(crate) fn krate(self, db: &impl HirDatabase) -> Option<Crate> { | ||
542 | match self { | ||
543 | DefWithBody::Const(c) => c.krate(db), | ||
544 | DefWithBody::Function(f) => f.krate(db), | ||
545 | DefWithBody::Static(s) => s.krate(db), | ||
546 | } | ||
547 | } | ||
548 | |||
549 | pub fn module(self, db: &impl HirDatabase) -> Module { | 541 | pub fn module(self, db: &impl HirDatabase) -> Module { |
550 | match self { | 542 | match self { |
551 | DefWithBody::Const(c) => c.module(db), | 543 | DefWithBody::Const(c) => c.module(db), |