diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 3c1f7cd65..5179f719d 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -606,11 +606,6 @@ impl Const { | |||
606 | db.infer((*self).into()) | 606 | db.infer((*self).into()) |
607 | } | 607 | } |
608 | 608 | ||
609 | #[cfg(test)] | ||
610 | pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | ||
611 | db.body_with_source_map((*self).into()).1 | ||
612 | } | ||
613 | |||
614 | /// The containing impl block, if this is a method. | 609 | /// The containing impl block, if this is a method. |
615 | pub fn impl_block(&self, db: &impl DefDatabase) -> Option<ImplBlock> { | 610 | pub fn impl_block(&self, db: &impl DefDatabase) -> Option<ImplBlock> { |
616 | let module_impls = db.impls_in_module(self.module(db)); | 611 | let module_impls = db.impls_in_module(self.module(db)); |
@@ -679,11 +674,6 @@ impl Static { | |||
679 | pub fn infer(&self, db: &impl HirDatabase) -> Arc<InferenceResult> { | 674 | pub fn infer(&self, db: &impl HirDatabase) -> Arc<InferenceResult> { |
680 | db.infer((*self).into()) | 675 | db.infer((*self).into()) |
681 | } | 676 | } |
682 | |||
683 | #[cfg(test)] | ||
684 | pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | ||
685 | db.body_with_source_map((*self).into()).1 | ||
686 | } | ||
687 | } | 677 | } |
688 | 678 | ||
689 | impl Docs for Static { | 679 | impl Docs for Static { |