diff options
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r-- | crates/ra_analysis/src/descriptors/module/mod.rs | 6 | ||||
-rw-r--r-- | crates/ra_analysis/src/loc2id.rs | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/crates/ra_analysis/src/descriptors/module/mod.rs b/crates/ra_analysis/src/descriptors/module/mod.rs index aab792e28..047454cff 100644 --- a/crates/ra_analysis/src/descriptors/module/mod.rs +++ b/crates/ra_analysis/src/descriptors/module/mod.rs | |||
@@ -213,11 +213,7 @@ impl ModuleId { | |||
213 | .find(|it| it.name == name)?; | 213 | .find(|it| it.name == name)?; |
214 | Some(*link.points_to.first()?) | 214 | Some(*link.points_to.first()?) |
215 | } | 215 | } |
216 | fn problems( | 216 | fn problems(self, tree: &ModuleTree, db: &impl SyntaxDatabase) -> Vec<(SyntaxNode, Problem)> { |
217 | self, | ||
218 | tree: &ModuleTree, | ||
219 | db: &impl SyntaxDatabase, | ||
220 | ) -> Vec<(SyntaxNode, Problem)> { | ||
221 | tree.module(self) | 217 | tree.module(self) |
222 | .children | 218 | .children |
223 | .iter() | 219 | .iter() |
diff --git a/crates/ra_analysis/src/loc2id.rs b/crates/ra_analysis/src/loc2id.rs index 53bf609fa..8c297156a 100644 --- a/crates/ra_analysis/src/loc2id.rs +++ b/crates/ra_analysis/src/loc2id.rs | |||
@@ -89,10 +89,6 @@ macro_rules! impl_numeric_id { | |||
89 | pub(crate) struct FnId(u32); | 89 | pub(crate) struct FnId(u32); |
90 | impl_numeric_id!(FnId); | 90 | impl_numeric_id!(FnId); |
91 | 91 | ||
92 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | ||
93 | pub(crate) struct ModId(u32); | ||
94 | impl_numeric_id!(ModId); | ||
95 | |||
96 | pub(crate) trait IdDatabase: salsa::Database { | 92 | pub(crate) trait IdDatabase: salsa::Database { |
97 | fn id_maps(&self) -> &IdMaps; | 93 | fn id_maps(&self) -> &IdMaps; |
98 | } | 94 | } |