diff options
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/expr.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs index 6043f4028..d6c551fb2 100644 --- a/crates/ra_hir/src/expr.rs +++ b/crates/ra_hir/src/expr.rs | |||
@@ -77,10 +77,6 @@ impl Body { | |||
77 | pub fn pats(&self) -> impl Iterator<Item = (PatId, &Pat)> { | 77 | pub fn pats(&self) -> impl Iterator<Item = (PatId, &Pat)> { |
78 | self.pats.iter() | 78 | self.pats.iter() |
79 | } | 79 | } |
80 | |||
81 | pub fn source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | ||
82 | db.body_with_source_map(self.owner).1 | ||
83 | } | ||
84 | } | 80 | } |
85 | 81 | ||
86 | // needs arbitrary_self_types to be a method... or maybe move to the def? | 82 | // needs arbitrary_self_types to be a method... or maybe move to the def? |