simplify tests

This commit is contained in:
Aleksey Kladov 2019-04-13 00:56:57 +03:00
parent 0fd93bc14a
commit 7c13e22334
3 changed files with 23 additions and 36 deletions

View file

@ -606,11 +606,6 @@ impl Const {
db.infer((*self).into())
}
#[cfg(test)]
pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> {
db.body_with_source_map((*self).into()).1
}
/// The containing impl block, if this is a method.
pub fn impl_block(&self, db: &impl DefDatabase) -> Option<ImplBlock> {
let module_impls = db.impls_in_module(self.module(db));
@ -679,11 +674,6 @@ impl Static {
pub fn infer(&self, db: &impl HirDatabase) -> Arc<InferenceResult> {
db.infer((*self).into())
}
#[cfg(test)]
pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> {
db.body_with_source_map((*self).into()).1
}
}
impl Docs for Static {